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).