简体   繁体   English

Visual Studio在发布后未删除app_offline.htm

[英]Visual studio not removing app_offline.htm after publish

I have a web application I've been working on with Visual Studio 2012. I've got several publishing profiles for different environments which are configured for file system publish. 我有一个正在使用Visual Studio 2012的Web应用程序。我已经针对不同的环境配置了多个发布配置文件,这些配置文件针对文件系统发布进行了配置。

Until yesterday all my code was located on one machine, but I got a new computer and copied those source files to the new machine. 直到昨天,我所有的代码都位于一台计算机上,但是我有一台新计算机并将这些源文件复制到了新计算机上。

Previously, my custom app_offline.htm would be pushed out during publishing and then be deleted afterwards. 以前,我的自定义app_offline.htm将在发布过程中推出,然后再删除。 Now, this isn't happening. 现在,这没有发生。 The app_offline.htm file remains in the root of the web application preventing anybody from using the site. app_offline.htm文件保留在Web应用程序的根目录中,从而阻止任何人使用该站点。

Also, the build menu no longer says "Publish <projectName>" and just says "Publish Selection" . 同样,构建菜单不再显示"Publish <projectName>"而仅显示"Publish Selection" I tried creating a new publishing profile with the same settings, manually editing the publishing profile files, cleaning and rebuilding the whole solution, and I've done a lot of reading but so far nobody seems to have had this same problem. 我尝试使用相同的设置创建一个新的发布配置文件,手动编辑发布配置文件,清理并重建整个解决方案,尽管我已经做了大量的阅读工作,但到目前为止,似乎没有人遇到同样的问题。 How can I get my publishing stuff to work again? 我如何才能使发布的东西重新工作?

Do you have the same Visual Studio service packs, patches, etc. installed on your new machine that you did on the old? 您在新计算机上安装的Visual Studio Service Pack,补丁程序等与旧计算机上安装的相同吗? Try installing the latest Windows and Visual Studio updates and see if that helps. 尝试安装最新的Windows和Visual Studio更新,看看是否有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Web应用程序即使从根目录中删除app_offline.htm内容也显示 - Web app displaying app_offline.htm content even after removing it from root directory 使用UrlRewriting重定向App_Offline.htm - App_Offline.htm redirect using UrlRewriting 如何在ASP .NET IIS 7中实现条件app_offline.htm - how to achieve conditional app_offline.htm in asp .net IIS 7 从命令行MSBuild,但没有app_offline.htm? - MSBuild from command line, but no app_offline.htm? 如何Application_End自动创建文件app_offline.htm? - How to Application_End the file app_offline.htm is automatically created? Visual Studio应用程序在商店中发布之前可以正常工作,而发布后则不可以 - Visual Studio app working before publish on store and not after publishing Visual Studio无法发布Web App - Visual Studio Cannot Publish Web App 在Visual Studio 2015中发布Xamarin应用 - publish xamarin app in visual studio 2015 使用Visual Studio离线创建新的Web应用程序C# - Create new web app offline c# using Visual Studio Visual Studio Express ClickOnce - 无法使用应用程序发布.NET 4.5 Offline Installer - Visual Studio Express ClickOnce - Can't Publish .NET 4.5 Offline Installer with application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM