{"id":319,"date":"2007-09-25T20:07:17","date_gmt":"2007-09-25T19:07:17","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=319"},"modified":"2008-02-07T18:37:26","modified_gmt":"2008-02-07T17:37:26","slug":"friendly-error-page-app_offlinehtm","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=319","title":{"rendered":"Friendly Error Page App_Offline.htm"},"content":{"rendered":"<p>n ASP.NET 2.0, while you&#8217;re in the process of updating your site, you can expose a friendly error page by including a file called <strong>app_offline.htm<\/strong> in your site&#8217;s root.\u00c2  If this file exists, all requests to the site will be redirected to this page.\u00c2  The only way to get around this is to delete the file.\u00c2  The usage scenario for this is for site maintenance, and it can be easily included as part of a deployment script, where this is the first file added and the last file deleted during the deployment.\u00c2  You can read more about this feature <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/f735abw9\">here<\/a>.<\/p>\n<p><strong>Excerpt<\/strong>:<\/p>\n<h3 class=\"subHeading\">To take a Web application offline before deployment<\/h3>\n<ol>\n<li>Create a file called App_offline.htm and place it in the root of your target Web site.<\/li>\n<li>Put a friendly message in the App_offline.htm file to let clients know that you are updating the site.<br \/>\nWhile the App_offline.htm file exists, any request to the Web site will redirect to the file.<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tr>\n<th align=\"left\"><img decoding=\"async\" alt=\"Note\" class=\"note\" src=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/f735abw9.note.gif\" \/>Important<\/th>\n<\/tr>\n<tr>\n<td>Remember to remove the App_offline.htm file after you are finished copying files.<\/td>\n<\/tr>\n<\/table>\n<\/li>\n<\/ol>\n<p>Fonte: <a target=\"_blank\" title=\"http:\/\/aspadvice.com\/blogs\/ssmith\/archive\/2005\/10\/05\/Friendly_Error_Page_App_Offline_htm.aspx\" href=\"http:\/\/aspadvice.com\/blogs\/ssmith\/archive\/2005\/10\/05\/Friendly_Error_Page_App_Offline_htm.aspx\">http:\/\/aspadvice.com\/blogs\/ssmith\/<\/a><!--bff94d72180fe25abb77554c209bf0a7--><!--bf227405e6262891ca15fa912d8113ee--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>n ASP.NET 2.0, while you&#8217;re in the process of updating your site, you can expose a friendly error page by including a file called app_offline.htm in your site&#8217;s root.\u00c2 If this file exists, all requests to the site will be redirected to this page.\u00c2 The only way to get around this is to delete the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-aspnet-20","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319"}],"version-history":[{"count":0,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}