Run MVC3 on a server that does not have asp.net MVC3 installed

Source: Internet
Author: User
Keywords Server install these run time
Tags .net applications asp asp.net course error error message install

When deploying ASP.net MVC3 applications on the server, you may receive the following error message:

This means that ASP.net MVC3 is not installed on your server.

There are two ways to solve this problem:

The first, of course, is to install ASP.net MVC3 on the server. However, if you are using the server's virtual space, or rented server, may not have installed conditions, that is the second method.

Second, the reason for the error is obviously the absence of the appropriate assembly, which has been installed in the GAC when ASP.net MVC3 has been installed, and references to these assemblies are used in the Web site program, MVC3 the assemblies involved are as follows:

We can solve this problem by deploying these assemblies under the bin of the ASP.net MVC3 application.

These assemblies should already be referenced in projects that develop MVC3 applications. In Solution Manager, expand the references, select the 6 assemblies, and in the Properties window, set the Copy local to True, which will cause the assemblies to be replicated locally when the application is deployed.

When the project is published, these assemblies, including those in the GAC, will be published together so that your MVC3 can be run.

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.