Tech Tip - Server Error In .NET 2.0 Application The Resource Can Not Be Found![]() | Absolute Beginner's Guide to Computer Basics |
![]() | How Computers Work, Seventh Edition |
![]() | PCs for Dummies, Ninth Edition |
![]() | Wired MAGAZINE |
![]() | Fast Company |
![]() | Maximum Pc - Non-disc Version |
![]() | DVD - Triumph of the Nerds - 1996 |
![]() | DVD - Beginner's Java 2 v1.5 2004 on DVD |
![]() | DVD - Beginner's Windows Server 2003 on DVD |
![]() | Music - Strike on Computers |
By Garnet
While developing an application in Visual Studio 2005, you may be suddenly unable to debug the application. The error message will look like this:
Server Error in '/Portal?Create' 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: /Portal?Create/Default?Create.aspx
Checking google for solutions to this problem, most responses will mention checking IIS metadata, or other things about IIS.
Here's my response:
Re: 404 Errors with ASP.NET v2.0 - dependency issues?
I had this happening when I'd try to debug a web application using the ASP.NET Development Server. All the advice concerning IIS has nothing to do with the operation of the ASP.NET Development Server that comes with Dev Studio 2005 because it runs separately from IIS.
Check if the file app_offline.htm is in the root directory for your web application. It will cause exactly the error message you describe. I am not sure what it is that left that file on my development machine, but once I erased it, I could then continue debugging my application.
This file seems to be placed on a website during the publish operation to keep it shutdown while the publish is in progress.
- Garnet
I tried to post this in the Microsoft forum at http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=84047, but their submit was broken.
Google searches I tried:
If so, I'd like to hear from you.
I spend a lot of time tracking down solutions to many problems and questions, and it takes a lot of time to write about the answers so you can benefit from them. But I hope this page helped you solve your problem, or answered your question, clearly and quickly. If you'd like to support my making more tech tips, please donate a couple of bucks via paypal! For any size donation, I'll send you an Internet Guide on the topic of your choice to include on your website. See [Guides To The Internet] for some examples.
Please also consider making a link to this page from your website.
You can also reach me privately with your questions at [my contact page]!
- Garnet
|
Interested in Avatar100803?