1
기본 인증을 직접 구현하려고합니다. 내가 BasicAuthenticationModule.cs
이왜 내 BasicAuthenticationModule을 찾을 수 없습니까?
내 solution\Modules
에 저장 네임 스페이스는 다음과 같습니다
namespace Web_API.Modules
{
public class BasicAuthenticationModule2 : IHttpModule
필자와 같은 제의 Web.config에 추가 :
<system.webServer>
<modules>
<add name="BasicAuthenticationModule" type="Web_API.Modules.BasicAuthenticationModule, BasicAuthenticationModule"/>
이 나를 얻는다 실행 : HTTP Error 500.19 - Internal Server Error - Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'BasicAuthenticationModule'
단서가있는 사람이 있습니까?
BasicAuthenticationModule2? – MikeSmithDev
이제 '파일 또는 어셈블리'BasicAuthenticationModule '또는 해당 종속성 중 하나를로드 할 수 없습니다. 시스템이 지정된 파일을 찾을 수 없습니다.' – Jason94
형식이'Web_API.Modules.BasicAuthenticationModule2'이 아니겠습니까? – MikeSmithDev