ASP. net mvc 3 can be run on the server without Installation

Source: Internet
Author: User

BKJIA recommends: ASP. net mvc Framework video tutorial

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 that the appropriate assembly is missing and ASP has been installed. 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 ASP. net mvc 3 can run.

Edit recommendations]

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.