5
Vote

configuration error

description

"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="/"

No files are attached

comments

antol85 wrote Mar 21 at 6:10 PM

Try to set

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

in your appSettings element.

mcwilliams132 wrote Jun 30 2011 at 12: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.

Error:

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

ErikEJ wrote Jun 9 2011 at 1:30 PM

??? - need more info../ code