Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The resource cannot be found

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
Hi all

I've got a wierd problem occurring when I create new web projects. As soon as I try to navigate to an ASPX web page - it gives me a 404 not found. I've checked the path and it is going to the correct location and the wierd thing is that 'plain' HTML files present no problem.

Can anyone help me with this, please?

Thanks as always

Craftor
:cool:

 
It could be a number of things. First thing to check is that the mappings for aspx files have been added when the framework was installed (have a look in IIS). To reset them you can simply run "aspnet_regiis -i" from the framework folder.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks for the response ca8msm. Ran the regiis command just in case but it didn't seem to make a difference.

The funny thing is that I have one web solution that works fine - any new ones and all the other old ones on my local machine won't work...

Craftor
:cool:

 
OK, lets take this step-by-step (BTW - what version of windows are you running).

First thing to check is that by running the regiis command the mappings were actually added. Open IIS, go to the default web site and click properties. Go to the Home Directory tab and click configuration - then check to see if there is an entry for the aspx extention. If there is repeat the above steps for the web site (further down the treeview from the default web site) that is causing the problem.

If they do exist, then post back here and we'll try the next steps...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
I'm running Windows XP with Service Pack 2...

Results:
Home directory has mappings for aspx files
Sub websites giving problems also have mappings :|

Thanks for all your help - I really appreciate this!

Craftor
:cool:

 
No problem.

Second thing to check is that in IE, you have unselected the "show friendly http error messages" checkbox from Tools->Internet Options->Advanced.

If you haven't, then do so and try the page again as it may show a more informative error.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Friendly errors was checked - unselected it but still got that same 404 error:

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: /JSESearchTester/default.aspx

Craftor
:cool:

 
OK, which versions of the framework so you have installed and which version is the website that you are trying?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
OK, has a virtual directory been set up for that project? To check, open IIS go to the website in question, right click and select properties. If the Application Name is blank then click the create button next to it. If it isn't blank then one has already been created for it.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Hmmm...this is starting to get a bit more complex! I've seen cases like this on Windows 2003 as this has a Web Extensions section where ASP.NET files get prohibited by default (I've no idea why though!) but on XP one of the above steps are usually what is causing the errors.

Do you have SharePoint installed?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Hopefully that won't have to happen.

Where is the file that is being requested to stored on the file system (e.g. c:\inetpub\....)? I'm just asking to make sure that the virtual directory is actually pointing to the correct path.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
The only other thing I can think of that may return that error is if either the file or folder has it's hidden attribute checked (right click the file/folder and select properties and there is a checkbox named Hidden).

If not, I think I may be pretty much exhausted of ideas!


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Nope - no checked Hidden :(

I think I'm going to uninstall and reinstall IIS this afternoon and see if that makes any difference [curse]

Thanks so much for all your help ca8msm - at least we exhaused some of the possibilities! I'll post back later and let you know if an IIS reinstall makes a difference.

Craftor
:cool:

 
OK, something else that I just thought of is to check that the ASPNET account has the correct priviliges to view that folder (and check the default.aspx file as well in case they haven't been cascaded down) by right clicking the folder and going to the security tab.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top