Deploying MVC5 on a WAN network virtual host

Source: Internet
Author: User
Reference
To deploy MVC, you need to change some of the global assemblies used by MVC to local deployment, and through n trials, it's finally done.
A close-up memo, lest later forget.
First change the Web. config, add the
<system.web>
<customerrors mode= "Off"/>
</system.web>

When this is deployed to the server, if there is an error, you will be prompted with detailed information that can be corrected as prompted.
Then change the required assembly to local deployment
In the VS reference, locate the appropriate assembly, right-click the property, have a "copy to local", and "true" to
Most of the information on the Internet is MVC2 or MVC1, only need to change a few assemblies, but I need to deploy MVC3 to change more than 10
And there's an assembly reference to default vs not adding at all
Send a picture, the selected is to change the local deployment


There may be omissions, it does not matter, if the lack of what runs when the prompt error is missing a certain assembly added.

Some information to the controller plus an. aspx suffix, at first I was added, no problem, and then removed and no problem
Estimate that my web host is using a new version of IIS
To this step can be uploaded, run to see, there should be no problem


PS: Using IIS integrated pipeline mode.
 

From for notes (Wiz)

Deploying MVC5 on a WAN network virtual host

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.