Omicron Llama

Coding all day, every day.

FBA Site – Unexpected Errors after App Pool Recycle

Scenario – you have an FBA authenticated web application, and for some reason every time there’s an application pool recycle, users are presented with error pages and cannot access any page in the site. The only way is to manually navigate to /_layouts/signout.aspx and to log back in to the site.

Solution – In my case, the incorrect defaultProvider was specified in web.config under the roleManager section. The default was set to the OOTB Claims auth role provider, it should have been set to the name of the AspNetSqlRoleProvider role that we had. Double check all your web.config modifications!

Here’s ref with the web.config settings as they should be: http://msdn.microsoft.com/en-us/library/ff647401.aspx

Leave a Reply

Your email address will not be published. Required fields are marked *