ASP.NET WindowsAuthentication custom 401 Unauthorized error page
问题 I have an ASP.NET web-site with authentication using ActiveDirectory. Now , when an authenticated user opens a page - he is automatically authenticated. I have faced a problem - when a non-authenticated user ( for example, a Mozilla Firefox user with not defined network.automatic-ntlm-auth.trusted-uris property ) opens a page, IIS sends 401 response and prompts for a login \ password. What I want is not to prompt him for a login \ password - just show a custom error page. It sounds pretty