Notes for ASP. net mvc release

Source: Internet
Author: User

To publish an ASP. net mvc project, you must modify copy local in project references.

 

Test environment:

Window Server 2008 +. Net 4.0 + iis7 + SQL Server 2008

 

Problem:

After the compiled release package is imported to iis7, cannot load assembly system. Web. helpers/system. Web. MVC/system. Web. Razor appears in the browser browse Web site.

The corresponding assembly cannot be found in the GAC of the server.

 

Solution:

Modify the copy local attribute of the MVC-related Assembly to true:

Microsoft. Web. Infrastructure

System. Web. Category actions

System. Web. Extension

System. Web. MVC

System. Web. Routing

System. Web. helpers

System. Web. Razor

System. Web. webpages

System. Web. webpages. Deployment

System. Web. webpages. Razor

 

 

 

Of course, if GAC can find the corresponding assembly on the service (the version and publickeytoken must be the same !) You do not need to set copy local = true.

 

PS: GAC directory-% Windir % \ Microsoft. NET \ assembly

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.