asp.net – “发布失败”,但建立成功?

前端之家收集整理的这篇文章主要介绍了asp.net – “发布失败”,但建立成功?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当使用Visual Studio 2008时,当我“发布网站”时,应用程序正确构建,但是我收到“发布失败”消息:

有什么可能的原因呢,我该如何防止呢?

解决方法

你可以试试这个:
  1. Perform precompilation against the web application.

  2. 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….

Source link

您可以通过按Ctl w,o打开输出窗口.

原文链接:https://www.f2er.com/aspnet/251055.html

猜你在找的asp.Net相关文章