有什么可能的原因呢,我该如何防止呢?
解决方法
Perform precompilation against the web application.
Clear the target directory(virtual directory in IIS or physical file
folder) and deploy all the files (of the web application) into the target
directory.In the output window you can check at which stage does the publish website
operation fail. For example,at the first stage,if there are some error
which will only occur at precompilation,that will cause the stage 1 fail.
Or some times if the target directory has something configured incorrectly.
Such as the IIS virtual dir is not set to the correct ASP.NET version or
some old files are locked and prevent them from being cleared. Mostly,
publish Failed will be caused by IIS side configuration issue such as
authentication setting….
您可以通过按Ctl w,o打开输出窗口.