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!.

6
  • I'm unable to figure this out myself, but still trying...
    – user53864
    Jan 28, 2016 at 18:17
  • What are the 404 sub-status and win32 status codes from the IIS log?
    – EricL
    Jan 31, 2016 at 1:49
  • Here is my IIS logs pastebin.com/pHfztLgY
    – user53864
    Jan 31, 2016 at 7: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. Feb 1, 2016 at 21:55
  • Have you installed Basic Authentication through Install Server Roles? Feb 6, 2016 at 1:32

0

You must log in to answer this question.