1

I deployed a .Net application on Windows Server 2012. The application works fine when no authentication is enabled(with anonymous authentication). When I enable Basic authentication, the site redirects to some Accounts/login*** page(having set proper Default Document).

The issue is similar to the one in the link http://forums.iis.net/t/1228477.aspx?Basic+Authentication+in+IIS8. I tried the following settings in web.config file but no luck.

<authentication mode="Windows"/>
<authorization>
    <allow users="*"/>
</authorization>

<appSettings>
  <add key="autoFormsAuthentication" value="false" />
  <add key="enableSimpleMembership" value="false"/>
</appSettings>

Anybody came across this and know how to fix it?. Any help is appreciated!.

user53864
  • 1,653
  • 8
  • 36
  • 66
  • I'm unable to figure this out myself, but still trying... – user53864 Jan 28 '16 at 18:17
  • What are the 404 sub-status and win32 status codes from the IIS log? – EricL Jan 31 '16 at 01:49
  • Here is my IIS logs http://pastebin.com/pHfztLgY – user53864 Jan 31 '16 at 07:17
  • What type of .NET app? Provided web.config shows you're using Windows auth not Basic. Make sure your code isn't inadvertently using Forms Auth and that your users have the necessary permissions to read the content. – user2320464 Feb 01 '16 at 21:55
  • Have you installed Basic Authentication through Install Server Roles? – user5870571 Feb 06 '16 at 01:32
  • Basic Authentication is not installed by default and once it is installed it defaults to disabled. See: [Basic Authentication ](https://www.iis.net/configreference/system.webserver/security/authentication/basicauthentication) – Brian Feb 06 '16 at 02:34

0 Answers0