Dlaczego nie może znaleźć mojego BasicAuthenticationModule?
Próbuję stworzyć własną implementację uwierzytelniania podstawowego.
mamBasicAuthenticationModule.cs
przechowywane w moimsolution\Modules
a jego przestrzeń nazw to:
namespace Web_API.Modules
{
public class BasicAuthenticationModule2 : IHttpModule
Dodałem go do mojego web.config jako takiego:
<system.webServer>
<modules>
<add name="BasicAuthenticationModule" type="Web_API.Modules.BasicAuthenticationModule, BasicAuthenticationModule"/>
Uruchamianie to mnie:HTTP Error 500.19 - Internal Server Error - Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'BasicAuthenticationModule'
Czy ktoś ma jakąś wskazówkę?