Asp.net mvc configuration error

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.