When Visual Studio Cannot Publish a Website

22 October, 2007 (06:45) | General

If you ever come across a situation where VS does not properly publish a site, but also doesn’t give any reason why, it maybe a good idea to go to the command prompt instead of VS. At the command prompt use the following statement

aspnet_compiler -v /MyWebSite -p “{Root}” “{Target}” -errorstack

Root and Target are directory paths for the source of the build and the destination of the build. The best part is that this command will display a nice error stack showing the issue, which , depending on the problem at hand , maybe something that VS cannot show .

Write a comment