The Artima Developer Community
Sponsored Link

.NET Buzz Forum
ASP.NET 2.0 and HTTP 404 Response Code

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sascha Corti

Posts: 797
Nickname: sascha
Registered: Aug, 2003

Sascha Corti is a developer evangelist for Microsoft in Switzerland.
ASP.NET 2.0 and HTTP 404 Response Code Posted: Jun 22, 2005 3:24 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Sascha Corti.
Original Post: ASP.NET 2.0 and HTTP 404 Response Code
Feed Title: Console.WriteLine("Hello World");
Feed URL: http://www.corti.com/WebLogSascha/blogxbrowsing.asmx/GetRss?
Feed Description: A technology blog with a focus on the .NET framework, the Visual Studio .NET tools and the Windows server platform with of course the normal weblog-noise on what's happening in the industry and reviews of the latest geeky gadgets.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Sascha Corti
Latest Posts From Console.WriteLine("Hello World");

Advertisement

Metablogging via Wrox Blogs: This is a tricky one! In order to shut down an application domain in ASP.NET 2.0, all you need to do is to place a "app_offline.htm" file into the app's root folder. This doesn't shut down the process, it simply redirects all requests to this file - resulting in a HTTP 404 response, if the file is empty. This can be very useful if you are updating a web application and it's components like for example a locally deployed database.

The tricky point is that Visual Studio 2005 (including the Express Web Developer version) temporarily create this file when using the "copy web" function that automatically uploads the local project to the designated web server. Should this deployment/upload fail, the "app_offline.htm" file will not be automatically removed.

It's easy to remove by hand, but if you don't know about this file and it's function, all you see is that this site only returns HTTP 404 responses, no matter what you try.

Quick Start: Working with Databases in Visual Web Developer 2005 Express Edition

Read: ASP.NET 2.0 and HTTP 404 Response Code

Topic: Microsoft Pro Photo Website Previous Topic   Next Topic Topic: Digital Photography and Windows

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use