简体   繁体   中英

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.

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. Now, this isn't happening. The app_offline.htm file remains in the root of the web application preventing anybody from using the site.

Also, the build menu no longer says "Publish <projectName>" and just says "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? Try installing the latest Windows and Visual Studio updates and see if that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM