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打开输出窗口.

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....