가능한 중복은 :
Why can’t it find my BasicAuthenticationModule?왜 내 모듈을 찾지 못합니까?
나는 기본 인증의 내 자신의 구현을 만들려고 해요. 나는 BasicAuthenticationModule.cs
내 solution\Modules
및 네임 스페이스에 저장 한
은 다음과 같습니다
namespace Web_API.Modules
{
public class BasicAuthenticationModule : IHttpModule
필자와 같은 제의 Web.config에 추가 :
<system.webServer>
<modules>
<add name="MyBasicAuthenticationModule" type="Web_API.Modules.BasicAuthenticationModule, BasicAuthenticationModule" />
내가 이것을 실행 다음과 같은 오류가 발생합니다 :
Server Error in '/' Application.
Could not load file or assembly 'BasicAuthenticationModule' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'BasicAuthenticationModule' or one of its dependencies. The system cannot find the file specified.
여기서 내가 뭘 잘못하고 있니?
가 어떻게 조립 예를 들어
하여 ASP.NET MVC 응용 프로그램이 정의는 다음과 같을 수MvcAPplication1
불려 갔을 경우 귀하의 클래스를 보유하고 디스크에 명명 된? – rene@rene 지정해 주시겠습니까? – Jason94
클래스를 보유하고있는 프로젝트는 dll에서 컴파일 된대로 출력 파일 이름을가집니다. 나는 dll의 이름이 BasicAuthenticationModule이 아니라 아마도 Web_API 또는 그와 비슷한 것으로 의심한다. – rene