VS build MVC When using an Internet application as a template, the project is built and recompiled cannot be passed.

Source: Internet
Author: User

Reproduced in this article

1. Problem Description: If you use the Internet application as a template when building MVC with VS, the project is built and recompiled,

Pop-up error:

  

  

Solution: The problem came out, asked around a lot of people are confused, so all kinds of Google and Baidu, fortunately Kung Fu not bear! Finally found a solution, I wrote the proposal of predecessors to tidy up, for everyone to reference!

If you're creating a project with these errors, don't worry!

Step1: First close your application scenario, find projectname.csproj ProjectName is your actual application name under the folder where you saved the project.

Step2: Open With text editor you find it find <reference include= "System.Web.WebPages"/> <reference include= "System.Web.Helpers"/ >

Then replace the two code with the following: <reference include= "System.Web.WebPages, Version=1.0.0.0,culture=neutral, publickeytoken= 31bf3856ad364e35, Processorarchitecture=msil "/>
<reference include= "System.Web.Helpers, Version=1.0.0.0,culture=neutral, Publickeytoken=31bf3856ad364e35, Processorarchitecture=msil "/>

Then save! Then use vs to open the application recompile OK pass!

VS build MVC When using an Internet application as a template, the project is built and recompiled cannot be passed.

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.