ASP.NET MVC3 Parser Error Message: This method cannot be called during the application's pre-start initialization stage.

by Cliff 4. June 2011
After upgrading to MVC3 I recieved the below error: 
Parser Error Message: This method cannot be called during the application's pre-start initialization stage.
This occured becuase I was using a custom membership provider:
<add name="MyMembershipProvider" ....
(Entry in web.config)To resolve, I added the following to the web.config:
<add key="enableSimpleMembership" value="false"/>
<add key="autoFormsAuthentication" value="false"/>
 The reason - security and membership settings are now defaulted so you need to override them. 
 

Cliff Gray's Info

Cliff Gray
Developer/Founder GrayTechnology.com.

E-mail me Send mail

Authors

Calendar

<<  June 2017  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

View posts in large calendar

Blogroll

Download BlogEngine.NET

Download at CodePlex

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2017

Subscribe