Click here to Skip to main content
14,930,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am facing a problem HTTP Error 404 - File or directory not found.

If i will browse html page then it display.
If i will browse aspx page then it showing "HTTP Error 404 - File or directory not found." error.

Please provide me the solution.

Bye
Posted
Comments
hitech_s 8-Nov-11 5:19am
   
provide the names of your files i mean pages
purnananda behera 8-Nov-11 5:44am
   
login.html
login.aspx
hitech_s 8-Nov-11 6:03am
   
are you getting this error after hosting the website in ftp or you are getting in local system..
change the names to index.aspx you will get it i think

Check your IIS is may not be installed.
   
The error indicates that file is not there.
Check whether aspx page is present or not in your application.
   
Comments
purnananda behera 8-Nov-11 5:17am
   
both the html and aspx pages are there.
If i will browse html page then it display.
If i will browse aspx page then it showing "HTTP Error 404 - File or directory not found." error.
P.Salini 8-Nov-11 5:23am
   
Check the configuration as in the link given by vivek
Have a look at the msdn support article
http://support.microsoft.com/kb/315122[^]

Also, make sure you have asp.net installed and configured on the machine you are facing this problem.

ASP.NET and IIS Configuration
[^]
   
   
I think on the server, make sure the httpdocs have only one page 'login.aspx'. OR simply delete all file from /httpdocs and upload only one login.aspx. now try to get like www.****.**/login.aspx , I hope you will get it.
After that you will upload all file as is it.
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900