Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

Forms Authentication - 401.2 Unauthorized?

$
0
0

I am trying to retrospectively plug in Forms Authentication to an ASP.Net project that was originally created with the no authentication template using VS 2013 and ASP.Net 4.0

I have followed the advice on MSDN and added this to my Web Config under system.web

 

<authentication mode="Forms"><forms loginUrl="Logon.aspx" name=".ASPXFORMSAUTH"></forms></authentication><authorization><deny users="?" /></authorization>

 

When I launch the site (IIS 7) the URL redirects to the Logon.aspx page but then I get a Error message 401.2.: Unauthorized: Logon failed due to server configuration.

In IIS I have the website set for Anonymous and Forms based authentication enabled.

Am I missing something here? 

Edit: The issue is the same as reported here:  https://social.msdn.microsoft.com/Forums/sqlserver/en-US/2920a4e2-775a-4aa7-bfff-4931fa0a4e9a/azure-website-forms-authentication-issue?forum=windowsazurewebsitespreview

It looks like there is an issue with Forms authentication being applied to ASP.Net projects from the VS templates.


Viewing all articles
Browse latest Browse all 1881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>