Wednesday, 21 August 2013

Web.Config doesn't recognize my class

Web.Config doesn't recognize my class

The goal
Make the Web.Config recognize my MembershipUserProvider class.
The problem
Take a look in my Web.Config:
<membership defaultProvider="MembershipUserProvider">
<providers>
<clear/>
<add name="MembershipUserProvider"
type="App.Security.MembershipUserProvider"
applicationName="/"
passwordFormat="Encrypted"/>
</providers>
</membership>
When I run my application, I get the following 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 phase.
Why doesn't Web.Config recognize my class?

No comments:

Post a Comment