2016-07-20 5 views
0

이 오류로 인해 하루 종일 미친 듯이 날아 왔습니다. 어떻게 수정해야합니까? 나는 NUGET을 Microsoft.AspNet.WebApi.Owin으로 업데이트했지만 여전히 운이 없다.HostAuthenticationAttribute를 찾을 수 없음

Error 11 The type or namespace name 'HostAuthenticationAttribute' could not be found (are you missing a using directive or an assembly reference?) 
Error 12 The type or namespace name 'HostAuthentication' could not be found (are you missing a using directive or an assembly reference?)  


// GET api/Account/ExternalLogin 
     [OverrideAuthentication] 
     **[HostAuthentication**(DefaultAuthenticationTypes.ExternalCookie)] 

답변

0

패키지가 다른 버전으로 밝혀졌으며 1 솔루션에서 여러 프로젝트가 있었기 때문에 쉽게 볼 수 없었습니다. 예는 평범 할 수 있지만 세 번 다시 확인하고 두 번째 눈이 가끔 도움이되도록하십시오.