Warum kann mein BasicAuthenticationModule nicht gefunden werden?
Ich versuche, meine eigene Implementierung einer Basisauthentifizierung zu erstellen.
ich habeBasicAuthenticationModule.cs
gespeichert in meinemsolution\Modules
und sein Namensraum ist:
namespace Web_API.Modules
{
public class BasicAuthenticationModule2 : IHttpModule
Ich habe es meiner web.config hinzugefügt:
<system.webServer>
<modules>
<add name="BasicAuthenticationModule" type="Web_API.Modules.BasicAuthenticationModule, BasicAuthenticationModule"/>
Laufen das bringt mich auf:HTTP Error 500.19 - Internal Server Error - Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'BasicAuthenticationModule'
Hat jemand eine Ahnung?