基本認証の独自の実装を作成しようとしています。
私は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.
私はここで何が間違っているのですか?