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

相关文章

这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...
最近用到了CalendarExtender,结果不知道为什么发生了错位,...
ASP.NET 2.0 page lifecyle ASP.NET 2.0 event sequence cha...