app-offline.htm

Ignore file from delete during WebDeploy

风流意气都作罢 提交于 2019-12-05 05:12:21
I'm using TeamCity to build and deploy a collection of MVC Applications via msbuild and WebDeploy. In a step previous to my solution build/deploy, I copy an app_offline.htm to the deploy directory so that I can perform SQL updates and other web/solution management steps including the build. One of the setting in the WebDeploy is to delete files that aren't included in the project, or not needed to run the site. This deletes my app_offline.htm file each time. While I understand this is kind of the desired result, is there a way to exclude this file from being deleted from the deployment

App_offline.htm, CSS, images, and aspnet_isapi.dll

回眸只為那壹抹淺笑 提交于 2019-12-04 10:26:58
问题 So, the site I'm working on is using urlrewriting in coordination with aspnet_isapi.dll (everything is mapped to it). I put up my app_offline.htm file, and all the text shows, however, the CSS or images aren't being served. I'm guessing they're being processed by ASP.NET due to the wildcard mapping instead of IIS. Is this correct? If so, how can I allow IIS to serve these files? Furthermore, an issue I can see arising..in the web.config for the rewriter settings: <rewrite url="^~/images

How to use IIS app_offline.htm file with Azure

半世苍凉 提交于 2019-12-04 06:21:53
I have a brilliantly designed app_offline.htm file that I'd like to display on my site periodically when I'm doing things like backing up the DB. On a server with a real file system, this wouldn't be a problem: I'd just copy app_offline.htm to the my app's root, and IIS will work its magic and redirect all requests to this file. However, I'm using Azure , so there's no real file system and there's no easy way move files around from one location to another. How I can I make app_offline.htm play nicely with Azure? Actually there is a real file system, as each VM instance runs on Windows 2008

App_offline.htm, CSS, images, and aspnet_isapi.dll

泪湿孤枕 提交于 2019-12-03 05:51:19
So, the site I'm working on is using urlrewriting in coordination with aspnet_isapi.dll (everything is mapped to it). I put up my app_offline.htm file, and all the text shows, however, the CSS or images aren't being served. I'm guessing they're being processed by ASP.NET due to the wildcard mapping instead of IIS. Is this correct? If so, how can I allow IIS to serve these files? Furthermore, an issue I can see arising..in the web.config for the rewriter settings: <rewrite url="^~/images/network/(.*)/(.*).jpg$" to="~/services/ImageHandler.ashx?type=$1&id=$2"/> <rewrite url="^~/image/view/(.*)

Why is App_Offline failing to work as soon as you it starts loading dlls?

喜欢而已 提交于 2019-12-01 03:35:52
Could anyone please help me with this. On the production site app_offline.htm works only till you start uploading dlls. As soon as you start uploading dlls it throws following error"Could not load file or assembly 'SubSonic' or one of its dependencies. The process cannot access the file because it is being used by another process. Now this clearly shows that IIS is still trying to serve the aspx page?? Is there anything I am missing here?? Any help would be appreciated. I have spent hours googling but to no avail. Thanks in advance. Manisha I have heard of people having problems with app

stopping app_offline.htm from being created and deleted at each build?

你离开我真会死。 提交于 2019-12-01 01:03:01
问题 I have a solution with 2 projects in Visual Studio 2008 SP1, .NET Framework 3.5 SP1. a ASP Web site. a Class Library (dll) project. I have a reference from the Web Site to the Class Library, as the Class Library is my data layer. But anyway, the thing happens only with this basic setup, a solution with these 2 types of projects and a reference from the Web Site to the Class Library. Now, each time I modify something in the Class Library and I build it, Visual Studio creates a file called app

App_offline.htm created/deleted whenever I check out a file in TFS

社会主义新天地 提交于 2019-11-28 06:24:10
I have an AJAX-heavy ASP.NET web application developed using .NET 4.0, using TFS as our source control. We recently upgraded our dev tools to use VS2010 and TFS 2010 exclusively, but now every time a file is checked out, we see visual studio reloading all the symbols, and all the sessions being dropped. After putting some error logging code, we discovered the reason for the recycle is it reckons App_offline.htm is changing whenever we check out. This doesn't exist anywhere in the project, and my SO-fu has found some information about SQL Express making this file get created and deleted, so it

Custom app_offline.htm file during publish

痞子三分冷 提交于 2019-11-27 19:42:06
When I publish my ASP.NET MVC application it generates a app_offline.htm file to take the site offline while it updates the website and then deletes the file once the publish is successful. This is cool and I really like the idea, but I want to create my own custom app_offline.htm file that the publish action is aware of and put it somewhere where it doesn't effect my development site - i.e. it doesn't sit in the root of my development site rendering it offline all the time. EDIT: From the comments on Scott Gu's post about app_offline.htm , it seems that customization of the app_offline.htm

ASP.NET 2.0 - How to use app_offline.htm

可紊 提交于 2019-11-27 06:15:16
I've read about the app_offline.htm file which can be placed within the root of a .NET 2.0 application which will in essence shut down the application and disable any other pages from being requested. I've placed the file in the root, and my site still loads. I went into default documents in IIS and set it to app_offline.htm and the site still loads (this might have been a caching issue though) Anyway, has anyone run into issues using this? Am I doing something wrong? CraigTP I have used the extremely handy app_offline.htm trick to shut down/update sites in the past without any issues. Be sure

App_offline.htm created/deleted whenever I check out a file in TFS

∥☆過路亽.° 提交于 2019-11-27 01:19:51
问题 I have an AJAX-heavy ASP.NET web application developed using .NET 4.0, using TFS as our source control. We recently upgraded our dev tools to use VS2010 and TFS 2010 exclusively, but now every time a file is checked out, we see visual studio reloading all the symbols, and all the sessions being dropped. After putting some error logging code, we discovered the reason for the recycle is it reckons App_offline.htm is changing whenever we check out. This doesn't exist anywhere in the project, and