A strange error occurs in ASP. A custom MemberShip authentication is added to the website of net mvc 3.0 and deployed to IIS 7.5 to access any webpage of the website. The following error is prompted:
Configuration Error
Note: An error occurred while processing the configuration file required to provide services to the request. Check the following error details and modify the configuration file as appropriate.
Analyzer error message: This method cannot be called during pre-start initialization of the application.
Source error:
Row 31: <providers>
Row 32: <clear/>
Row 33: <add name = "abcMembershipProvide" type = "xxx. CustomMemberShipProvider"/>
Row 34: </providers>
Row 35: </membership>
Attempts to N methods are invalid. Finally, we found that an Index. cshtml file was accidentally placed under the root directory of the website. After deleting the file, the problem was solved.