加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-15 23:55:01 所属栏目:asp.Net 来源:网络整理
导读:当使用Visual Studio 2008时,当我“发布网站”时,应用程序正确构建,但是我收到“发布失败”消息: 有什么可能的原因呢,我该如何防止呢? 解决方法 你可以试试这个: Perform precompilation against the web application. Clear the target directory(virtua
当使用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打开输出窗口.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读