Handle a strange error in ASP. net mvc applications

Source: Internet
Author: User
In today's development, visit Http: // localhost: 1672/member/changepwd/ddWhen the Page always reports such an error:

The view 'changepassword' or its master cocould not be found. The following locations were searched:
~ /Views/member/DD. Master
~ /Views/shared/DD. Master
After one afternoon's test, we found the problem was as follows:My actionsCodeIn, the last sentence is: Return view ("changepassword", username );
The original problem is that the second parameter of one of the reload methods in the view method is of the string type, indicating mastername. So I found such an error.Finally, use the view method of a parameter.

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.