Vivek Thakur

Chaotically Complex

  Home  |   Contact  |   Syndication    |   Login
  105 Posts | 1 Stories | 491 Comments | 65 Trackbacks

News



Archives

ASP.NET Ventures

*******************
Note: view the updated entry below:

http://www.codeasp.net/blogs/vivek_iit/microsoft.net/3/the-resource-cannot-be-found-aspnet-error


*******************

Suddenly for no apparent reason, one of our applications (after publishing) started giving this 404 error message:

Server Error in ‘/xxx’ Application.
—————————————————-
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested Url: /xx/xx.aspx

This error was coming on all pages in the application, I checked and re-checked ASP.NET version in IIS, read-write permissions on the published folder, application pool setting, trailing slash problem (http://support.microsoft.com/kb/894670/en) and every other thing, but none helped!

I did some googling but came up with same results, these are the links I checked:

http://cephas.net/blog/2005/07/14/aspnet-the-resource-cannot-be-found/

http://forums.asp.net/t/1186539.aspx

By chance I noticed this link: http://dotnet.org.za/armand/archive/2005/07/03/38757.aspx about removing app_oflline.htm file from the root directory.

And I realized that we too have the app_offline.htm file and the moment we removed it, the application worked like a charm!

Hope this helps others!
posted on Saturday, July 12, 2008 5:39 AM

Feedback

# re: The resource cannot be found. ASP.NET error 8/14/2008 1:21 PM neel
show my comment...

# re: The resource cannot be found. ASP.NET error 8/14/2008 1:29 PM neel
show comment 2...

# re: The resource cannot be found. ASP.NET error 3/16/2009 4:01 PM Bernard
Thank you - bailed me out too.

# re: The resource cannot be found. ASP.NET error 4/22/2009 2:56 AM Ben
Thanks! That solved an entire day of bug hunting!!



Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: