Click here to Skip to main content
11,480,148 members (64,963 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Web Development
I have an ASP.NET page.

(Here[^])


I am trying to get it to link to other pages in the site.

For example, mouse over 'Projects' and then 'Cardington' and the link should take you to another page in the site.

It does not, it merely states:
Not Found
The requested document was not found on this server.

However, when I run this site through WebMatrix on my machine as a local page it works perfectly well.

The link pages are in the same (main) directory.

Is there something I need to do with the web controls?
Posted 25-Mar-12 8:32am
Dalek Dave433.2K
Edited 25-Mar-12 8:33am
v2
Comments
Uday P.Singh at 25-Mar-12 13:44pm
   
are sure the page you redirecting has the same name i.e "Illustration.vbhtml"?
Dalek Dave at 25-Mar-12 13:51pm
   
Yes, checked that out.
senguptaamlan at 25-Mar-12 17:42pm
   
I also checked that the HTML files are also not getting out of the web server the same error...
mark merrens at 25-Mar-12 20:43pm
   
Are you certain that the file in question is physically present in the root folder of your application?
BTW: what are you building in Rickmansworth?
Dalek Dave at 26-Mar-12 4:55am
   
We are about to knock up three units in The Drive, Rickmansworth.

Proably going to be 6 or seven bedrooms, all on suite.
They will have triple garage and a small cinema, one with a stable.
Probably going to sell for £1.5M or thereabouts.

Are you still interested?
mark merrens at 26-Mar-12 9:15am
   
LOL: was hoping they were the flats my parents were looking at!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I've had this problem before and so I'm going to guess that it has something to do with authorization and you're being redirected back to the root directory. Try adding the following to the web.config file in the destination directory:

For a particular page add:

<location path="[YOUR.FILE]">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

.. or for the whole directory...

<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Possibly again MIME Type issue. Check this post
ASP.NET Web Pages (Razor) Troubleshooting Guide[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

In this case it seems to be caused by a DNS issue. Also because I noticed that visual web developer is not using the same port (something it is not supposed to do). You should edit your hosts file and point the server to the folder containing the website. This could help you.

--Amit
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try this
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 235
1 Sergey Alexandrovich Kryukov 215
2 Richard MacCutchan 100
3 F-ES Sitecore 75
4 DamithSL 65
0 Sergey Alexandrovich Kryukov 7,890
1 OriginalGriff 7,556
2 Sascha Lefèvre 3,064
3 Maciej Los 2,491
4 Richard Deeming 2,335


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 4 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100