Forum Moderators: open

Message Too Old, No Replies

Cannot get IIS 5.1 to display any pages

IIS doesn't display LocalStart.asp or any asp or asp.net pages

         

phallett

7:13 pm on Dec 6, 2003 (gmt 0)

10+ Year Member



I have Windows XP Pro and IIS 5.1. I am an ASP developer and want to start learning ASP.NET and have loaded IIS 5.1. Even a simple Hello world asp.net app gets me a http 500 internal server error. I have stopped and restarted the services, uninstalled and reinstalled and done just about everything I can think of. I am on a dial up internet access with Dynamic ip addressing and have no idea what the heck is going on; can anyone point me in the right direction? I am having a right mare.

IanTurner

7:38 pm on Dec 6, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Have you checked the properties on the website?
It needs to allow scripting for ASP to work.

phallett

8:27 pm on Dec 6, 2003 (gmt 0)

10+ Year Member



Yes on Execute permissions I have set scripts only as the execute permissions.

bignet

9:50 pm on Dec 7, 2003 (gmt 0)

10+ Year Member



would you confirm that you can access static pages?

phallett

8:27 am on Dec 8, 2003 (gmt 0)

10+ Year Member



Do you mean can I view static Html thriough IIS?

highman

8:51 am on Dec 8, 2003 (gmt 0)

10+ Year Member



In the website properties set the application protection to LOW

If .asp works then I have the same problem as you :)

phallett

6:34 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



I can view static HTM pages, just now ASP stuff...

phallett

6:54 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



...that should be that I can view static pages, just NOT asp pages.

Thank you.

bignet

8:08 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



please make sure
in iis, web service extensions (or properties dpending on version) asp.net is enabled
in website properties--documents a default page is enabled and exist in the corresponding directory

phallett

9:10 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



...I cannot even get ASP to work let alone asp.net

All documents in this directory are:

Default.htm
Default.asp
iisstart.asp
index.htm

I am only looking to start Localstart.asp or iisstart.asp and I get a http 500 error. I can display html. I cannot display asp/asp.net

phallett

9:13 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



I cannot run this one:

<%@ Page Language="VB" %>

<script runat="server">

sub Page_Load(Sender as Object, e as EventArgs)

lblMessage.text = "Hello world"
end sub

</script>

<html>
<body>
<asp:Label id="lblMessage runat="server"/>
</body>
</html>

tomasz

9:29 pm on Dec 8, 2003 (gmt 0)

10+ Year Member



First in your browser turn of your friendly URL to see more specific error then 500. Second run permission wizard on your virtual directory this should fix your permissions. Third you need <form id=bla runat=server> tag in your script

phallett

11:02 pm on Dec 11, 2003 (gmt 0)

10+ Year Member



I have turned them off. I thnk there is a label id and runat server in that code

tomasz

2:11 pm on Dec 13, 2003 (gmt 0)

10+ Year Member



The asp.net requies fom tag
see if this will run


<%@ Page Language="VB" %>

<script runat="server">

sub Page_Load(Sender as Object, e as EventArgs)

lblMessage.text = "Hello world"
end sub

</script>

<html>
<body>
<form id="form1" runat="server">
<asp:Label id="lblMessage runat="server"/>
</form>
</body>
</html>

phallett

6:52 pm on Dec 14, 2003 (gmt 0)

10+ Year Member



...nada, nothing but a script error 'missing ; at line four' - nothing missing there...

Help!

phallett

6:53 pm on Dec 14, 2003 (gmt 0)

10+ Year Member



I also cannot set properties to view asp.net pages...

highman

9:54 am on Dec 15, 2003 (gmt 0)

10+ Year Member



In the website properties set the application protection to LOW

bignet

8:25 pm on Dec 15, 2003 (gmt 0)

10+ Year Member



back to basics

are you sure you have doanloaded and installed the .net
platform

bignet

8:27 pm on Dec 15, 2003 (gmt 0)

10+ Year Member



it is available from windowsupdate_com websit

phallett

1:47 pm on Jan 6, 2004 (gmt 0)

10+ Year Member



...well I got around it; I bought a new Web server with IIS5.1 installed. Works perfectly. My dev laptop must have a shagged install of IIS on it. Now at least I know I can at the very least write a simple .NET program. My ability to code is not diminished!