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. 
 

Related posts

Comments are closed

Cliff Gray's Info

Cliff Gray
Developer/Founder GrayTechnology.com.

E-mail me Send mail

Authors

Calendar

<<  August 2018  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789

View posts in large calendar

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 2018

Subscribe