This project is read-only.

configuration error


"This method cannot be called during the application's pre-start initialization stage."
Line 48: <add
Line 49: name="SqlCeMembershipProvider"
Line 50: type="ErikEJ.SqlCeMembershipProvider"
Line 51: connectionStringName="ApplicationServices"
Line 52: applicationName="/"


ErikEJ wrote Jun 9, 2011 at 2:30 PM

??? - need more info../ code

mcwilliams132 wrote Jun 30, 2011 at 1:03 AM

I'm getting the same error. I did one MVC 3 site and it worked fine, but now I'm getting teh same error on a new site. Even copied the same web.config file - same thing. I attempted to use the new System.Web.Providers - no go. I will qualify this statement; if I do not use the ADD DEPLOYABLE DEPENDANCIES both options work fine. As soon as I do use that option (I'm on a shared hosting at godaddy), this error cropps up.


Server Error in '/' Application.

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

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

Source Error:

Line 37: <add
Line 38: name="SqlCeMembershipProvider"
Line 39: type="ErikEJ.SqlCeMembershipProvider"
Line 40: connectionStringName="ApplicationServices"
Line 41: applicationName="/"

Source File: c:\xxx\web.config Line: 39

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

wrote Jun 30, 2011 at 1:04 AM

wrote Jul 15, 2011 at 6:00 PM

wrote Sep 3, 2011 at 1:51 PM

wrote Dec 18, 2011 at 7:54 PM

antol85 wrote Mar 21, 2012 at 7:10 PM

Try to set

<add key="enableSimpleMembership" value="false"/>
<add key="autoFormsAuthentication" value="false"/>

in your appSettings element.

wrote Feb 14, 2013 at 3:32 AM

David_Navarro wrote Mar 19, 2013 at 7:58 PM


I'm getting a similar error with a new MVC 4.0 project. I'm still using VS 2010 and I'm targeting the .net framework 4.0.

I would like my project to use SQLCE 4+ for Membership and Roles but I'm have a little trouble getting it setup.

Was a solution (or updated provider) to these errors published somewhere?

Please let me know and thanks!

~ Dave

ErikEJ wrote Mar 19, 2013 at 9:01 PM

I no longer support this package, please use the Microsoft supplied package instead