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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The page cannot be found 1

Status
Not open for further replies.

fischadler

Programmer
May 31, 2002
258
MT
I have a web server that has been working fine with classic ASP pages for the last 4 months. I am now trying to switch to ASP.NET but aspx pages simply don't show up on this server. I get this error:

The page cannot be found
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)


But the page is physically there (it's a simple aspx page - source shown below) and the other pages in the same folder (written in classic ASP) show fine.

This same page works fine at work (Windows 2003) or on my home WinXP Pro PC using localhost.
I have installed .Net Framework 2 on the problematic server.

Here's the code for the test page:

Code:
<script runat="server">
Sub submit(sender As Object, e As EventArgs)
lbl1.Text="Your name is " & txt1.Text
End Sub
</script>

<html>
<body>

<form runat="server">
Enter your name:
<asp:TextBox id="txt1" runat="server" />
<asp:Button OnClick="submit" Text="Submit" runat="server" />
<p><asp:Label id="lbl1" runat="server" /></p>
</form>

</body>
</html>

-Fischadler
 
have you added .net to the site in IIS and chosen what framework it runs under.

other than that perhaps the extension (aspx) are not listed to be handled, check file types.
 
By default, ASP.NET pages are prohibited to run in IIS so check to make sure you have set them to be allowed.


____________________________________________________________

Need help finding an answer?

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

 
I forgot to say, you can check this by going to the Web Service Extension node in IIS.


____________________________________________________________

Need help finding an answer?

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

 
Thanks ca8msm! That solved the problem!

Thanks to you too, espar.

-Fischadler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top