Run mvc3 on a server without ASP. NET mvc3 installed

Source: Internet
Author: User
Tags shared hosting

 

When an ASP. NET mvc3 application is deployed on the server, the following error message may be displayed:

This indicates that ASP. NET mvc3 is not installed on your server.

 

There are two ways to solve this problem:

First, install ASP. NET mvc3 on the server. However, if you are using a virtual space of a server or a rented server, there may be no installation conditions, then use the second method.

Second, the cause of the error is obviously missing appropriateProgramSet, where ASP. in the case of net mvc3, these assemblies have been installed in GAC, and reference these assemblies is used in website programs. The Assembly involved in mvc3 is as follows:

We can solve this problem by deploying these assembly under the bin of ASP. NET mvc3 application.

In the project where the mvc3 application is developed, these assemblies should have been referenced. In solution manager, expand references, select these six assemblies, and in the Properties window, copy local is set to true. This will cause the assembly to be copied to local during application deployment.

When you release a project, these assembly, including the Assembly in GAC, will be released together, so that your mvc3 can run.

 

The image in this article comes from:

Deployment of ASP. Net MVC 3 RC 2 Application on a shared hosting environment without ging the hosting company

Deploying ASP. Net MVC 3 web application to server where ASP. net mvc 3 is not installed

 

Related Article

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.