<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx</link><description>I just learned this a few minutes ago, but you can take an ASP.NET 2.0 application offline temporarily by uploading a file called App_Offline.htm. It will spin down the appdomain and redirect all requests to that page. Neato!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#6697337</link><pubDate>Wed, 22 Oct 2008 03:10:41 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6697337</guid><dc:creator>acl123</dc:creator><author>acl123</author><description>&lt;p&gt;I found that I had to make sure a .NET aspx page and a web.config file were present in the same directory as the App_Offline.htm file, or it wouldn't work.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6697337" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#6628948</link><pubDate>Wed, 17 Sep 2008 08:08:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6628948</guid><dc:creator>jaybz</dc:creator><author>jaybz</author><description>&lt;p&gt;actually, it depends on what browser is used as well. &amp;nbsp;1k most like is more than enough for most browsers. &amp;nbsp;here&amp;#39;s what really happens in the background:&lt;/p&gt;
&lt;p&gt;if App_Offline.htm exists, IIS sends a 404 HTTP error result in the HTTP headers. &amp;nbsp;if the file is empty, IIS generates its own error content. &amp;nbsp;if it isn&amp;#39;t, IIS sends the contents of App_Offline.htm.&lt;/p&gt;
&lt;p&gt;however, Google Chrome only displays the content if the server sends at least 512 bytes of content, otherwise it displays its own 404 error page. &amp;nbsp;Chrome is based on Apple&amp;#39;s WebToolkit so Apple&amp;#39;s Safari may exhibit the same behavior.&lt;/p&gt;
&lt;p&gt;IE7 has a similar behavior if you have &amp;quot;friendly HTTP errors&amp;quot; enabled, except, that the content needs to be more than 512 bytes long before IE7 decides to display it. &amp;nbsp;If you have it disabled, however, the content is displayed regardless of how long the content is. &amp;nbsp;The difference there is that if the content is exactly 512 bytes Chrome will display the content, IE7 will not.&lt;/p&gt;
&lt;p&gt;Firefox 3, always shows the content but may have a setting or a plugin that enables &amp;quot;friendly HTTP errors&amp;quot;.&lt;/p&gt;
&lt;p&gt;i don&amp;#39;t have any information regarding other browsers as I don&amp;#39;t have them available at the moment. &amp;nbsp;i also cannot test 404 errors with no content because can&amp;#39;t generate those yet. &amp;nbsp;for all intents and purposes, however, 1K should be more than enough to get the content displayed instead of the browsers&amp;#39; generic 404 page, if any.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6628948" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#6319185</link><pubDate>Wed, 25 Jun 2008 15:01:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6319185</guid><dc:creator>Eric</dc:creator><author>Eric</author><description>&lt;p&gt;Per Rob&amp;#39;s suggestion I had to add the comments to exceed 5K. I noticed that once the app recognized the file it could be trimmed back to the 1k of content I had and it stilled worked. Also I was able to customize the content, including multiple divs and customizing their style attribute with css syntax...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6319185" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#6102571</link><pubDate>Tue, 15 Apr 2008 22:04:07 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6102571</guid><dc:creator>crow12</dc:creator><author>crow12</author><description>&lt;p&gt;si pero como podria ejecutar toda una aplicacion offline sin estar conectado a mi servidor y en un momento dado todos lo que realiza en mi aplicacion pueda actualizarse con lo que tengo en mi servidor&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6102571" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#5949831</link><pubDate>Tue, 11 Mar 2008 11:14:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5949831</guid><dc:creator>Rob Thornley</dc:creator><author>Rob Thornley</author><description>&lt;p&gt;If you get a 404 error, then pad your app_offline file with comments. &amp;nbsp;I think once it exceeds something like 512 bytes it starts working&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5949831" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#5413532</link><pubDate>Thu, 06 Dec 2007 19:02:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5413532</guid><dc:creator>Matt</dc:creator><author>Matt</author><description>&lt;p&gt;I just put the following into my app_offline.htm file and I stopped getting the resource not found error. &lt;/p&gt;
&lt;p&gt;&amp;lt;html&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;head&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/head&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;body&amp;gt;&lt;/p&gt;
&lt;p&gt;We are currently down for maintenance.&lt;/p&gt;
&lt;p&gt;&amp;lt;/body&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5413532" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#4848524</link><pubDate>Wed, 31 Oct 2007 19:59:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4848524</guid><dc:creator>Emmanuel Pagan</dc:creator><author>Emmanuel Pagan</author><description>&lt;p&gt;Posting this for everyones information. I created my own app_offline.htm file (which contained content) and users would received a 404 error when attempting to access the site intead of seeing the content of the html page. After some testing I noticed that if your app_offline.htm file doesn&amp;#39;t not contain the same document type reference (at the top of your html markup) that the auto generated visual studio app_offline file contains the user will never see the html content. Note this might be why Sunish&amp;#39;s friend was getting that 404 error.&lt;/p&gt;
&lt;p&gt;Document Type Reference: &lt;/p&gt;
&lt;p&gt;&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.1//EN&amp;quot; &amp;quot;&lt;a rel="nofollow" target="_new" href="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&amp;quot;&amp;gt;"&gt;www.w3.org/.../xhtml11.dtd&amp;quot;&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4848524" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#1093282</link><pubDate>Fri, 01 Dec 2006 18:39:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1093282</guid><dc:creator>Pravesh Khadka</dc:creator><author>Pravesh Khadka</author><description>&lt;p&gt;Ah ! This is what I am looking for. It will save me time and energy to create whole different aspx file and put logic on it.&lt;/p&gt;
&lt;p&gt;Appreciated,&lt;/p&gt;
&lt;p&gt;Pravesh&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1093282" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#844678</link><pubDate>Mon, 06 Nov 2006 06:17:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:844678</guid><dc:creator>Vista Discuss</dc:creator><author>Vista Discuss</author><description>That works! Awesome.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=844678" width="1" height="1"&gt;</description></item><item><title>re: Take Your ASP.NET 2.0 App Offline</title><link>http://weblogs.asp.net/eporter/archive/2005/10/05/426708.aspx#427484</link><pubDate>Fri, 14 Oct 2005 15:38:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:427484</guid><dc:creator>Vineeth Raja</dc:creator><author>Vineeth Raja</author><description>Thanks for the neat tip.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=427484" width="1" height="1"&gt;</description></item></channel></rss>