What is the reason why VS2010 cannot open the precompiled Web site source code? (Turn of CSDN)

Source: Internet
Author: User

original problem : Today will be written a copy of a website source directory to another computer, but open prompt:
You want to open a precompiled Web site, you can view the site, but making changes to it may cause the site to stop running, to modify the site, it is recommended that you edit the files in the original web site, then precompile the site, and finally republish the site.
As a result, I continue to open, can compile the source code, but regenerate the site is wrong, re-publish also error, strange!
I clearly want to open the site is the source of the program Ah, I did on the previous computer was released this site in the local, but on the second computer Open is the source code program rather than publish the directory, the environment of two computers is no different, are used VS2010, who knows what this is what reason? How to solve?

Answer:

Oh, careful examination, to find out the cause of the problem:
In the source directory, there is such a file
Precompiledapp.config
The content inside of it is
<precompiledapp version= "2" updatable= "true"/>
This could be a file that was generated when the site was published, I moved it, and then reopened it with VS, pass!

reference to the 8 floor of the reply:
Oh, careful examination, to find out the cause of the problem:
In the source directory, there is such a file
Precompiledapp.config
The content inside of it is
<precompiledapp version= "2" updatable= "true"/>
This could be a file that was generated when the site was published, I moved it, and then reopened it with VS, pass!

Well, this file will be generated automatically at vs compile time. Sometimes you should also pay attention to version (the revision number).

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.