Click here to Skip to main content
15,890,995 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am trying to run my server source(DNN) in my localhost , but its getting 404 error like this but , In server working fine

"NetworkError: 404 Not Found - http://localhost:50189/dnnsample/Default.aspx"

tell me what i have missed ...
thanks in advance
Posted

Um...the file?

404 is a "generic" website error - it means that the file specified does not exist.
So look at your code, find where you open the file and check exactly what it is trying to open: the chances are that you have a relative address such as "../default.aspx" or just "default.aspx" in a page that is located in a subdirectory.

It may be that you want to use "~/default.aspx" to force the root directory - but without access to your website code, we can't tell.
 
Share this answer
 
If you're not running this from Visual Studio then you need a website set up on your IIS that is assigned to port 50189, and you'll need a virtual directory in there called "dnnsample" where your site sits.

It's probably more likely that you aren't understanding the built-in Visual Studio webserver and why it generates the urls it does.
 
Share this answer
 

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



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