S
Sathyaish
It has been more than two years I guess now that I am not being able to
run ASP.NET on my home Windows XP computer. I have been using Visual
Studio .NET 2003. The surprising part is that the pages work with
WebMatrix on a different port, but I've never been able to use IIS. I
am using IIS 5.5 with v1.1 of the .NET Framework. I've done everything
from "aspnet_regiis -i" to resetting IIS.
With ASP.NET pages, IIS always throws back HTTP 500 and the event log
reports a problem in launching IIS or something (see below). If it is
important, I had initially formatted by hard drive with a FAT partition
and later converted to NTFS. Also, here's some account information:
ASPNET user is a member of Debugger Users
IUSR_MYCOMPUTERNAME is a member of Guests
IWAM_MYCOMPUTERNAME is a member of Users
For a test, when I create a classic ASP page, it runs, but an ASPX does
not. For instance, I created two pages foo.asp and foo.aspx as
indicated below.
FOO.ASP
<HTML>
<% Response.Write("Hello, World!") %>
</HTML>
IIS LOG INDICATES SUCCESSS CODE 200
2006-04-09 15:14:33 127.0.0.1 - W3SVC1 MYCOMPUTER'SNAME 127.0.0.1 80
GET /foo.asp - 200 0 291 391 93 HTTP/1.1 localhost
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+iebar;+SV1;+.NET+CLR+1.1.4322)
- -
---------------------------------------------------------------------------------------------------------------------------------------
FOO.ASPX
<script runat="server">
Sub Page_Load(Sender as Object, e as EventArgs)
link1.HRef="http://www.w3schools.com"
End Sub
</script>
<html>
<body>
<form runat="server">
<a id="link1" runat="server">Visit W3Schools!</a>
</form>
</body>
</html>
NT EVENT LOG
Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 36
Date: 04/09/2006
Time: 8:29:20 PM
User: N/A
Computer: MYCOMPUTER'SNAME
Description:
The server failed to load application '/LM/W3SVC'. The error was 'The
specified metadata was not found.
'.
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
IIS LOG REPORTS 500
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2006-04-09 15:01:14
#Fields: date time c-ip cs-username s-sitename s-computername s-ip
s-port cs-method cs-uri-stem cs-uri-query sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs-version cs-host
cs(User-Agent) cs(Cookie) cs(Referer)
2006-04-09 15:01:14 127.0.0.1 - W3SVC1 MYCOMPUTER'SNAME 127.0.0.1 80
GET /foo.aspx - 500 2148321281 490 392 16
HTTP/1.1 localhost
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+iebar;+SV1;+.NET+CLR+1.1.4322)
- -
---------------------------------------------------------------------------------------------------------------------------------------
run ASP.NET on my home Windows XP computer. I have been using Visual
Studio .NET 2003. The surprising part is that the pages work with
WebMatrix on a different port, but I've never been able to use IIS. I
am using IIS 5.5 with v1.1 of the .NET Framework. I've done everything
from "aspnet_regiis -i" to resetting IIS.
With ASP.NET pages, IIS always throws back HTTP 500 and the event log
reports a problem in launching IIS or something (see below). If it is
important, I had initially formatted by hard drive with a FAT partition
and later converted to NTFS. Also, here's some account information:
ASPNET user is a member of Debugger Users
IUSR_MYCOMPUTERNAME is a member of Guests
IWAM_MYCOMPUTERNAME is a member of Users
For a test, when I create a classic ASP page, it runs, but an ASPX does
not. For instance, I created two pages foo.asp and foo.aspx as
indicated below.
FOO.ASP
<HTML>
<% Response.Write("Hello, World!") %>
</HTML>
IIS LOG INDICATES SUCCESSS CODE 200
2006-04-09 15:14:33 127.0.0.1 - W3SVC1 MYCOMPUTER'SNAME 127.0.0.1 80
GET /foo.asp - 200 0 291 391 93 HTTP/1.1 localhost
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+iebar;+SV1;+.NET+CLR+1.1.4322)
- -
---------------------------------------------------------------------------------------------------------------------------------------
FOO.ASPX
<script runat="server">
Sub Page_Load(Sender as Object, e as EventArgs)
link1.HRef="http://www.w3schools.com"
End Sub
</script>
<html>
<body>
<form runat="server">
<a id="link1" runat="server">Visit W3Schools!</a>
</form>
</body>
</html>
NT EVENT LOG
Event Type: Warning
Event Source: W3SVC
Event Category: None
Event ID: 36
Date: 04/09/2006
Time: 8:29:20 PM
User: N/A
Computer: MYCOMPUTER'SNAME
Description:
The server failed to load application '/LM/W3SVC'. The error was 'The
specified metadata was not found.
'.
For additional information specific to this message please visit the
Microsoft Online Support site located at:
http://www.microsoft.com/contentredirect.asp.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
IIS LOG REPORTS 500
#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2006-04-09 15:01:14
#Fields: date time c-ip cs-username s-sitename s-computername s-ip
s-port cs-method cs-uri-stem cs-uri-query sc-status
sc-win32-status sc-bytes cs-bytes time-taken cs-version cs-host
cs(User-Agent) cs(Cookie) cs(Referer)
2006-04-09 15:01:14 127.0.0.1 - W3SVC1 MYCOMPUTER'SNAME 127.0.0.1 80
GET /foo.aspx - 500 2148321281 490 392 16
HTTP/1.1 localhost
Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+iebar;+SV1;+.NET+CLR+1.1.4322)
- -
---------------------------------------------------------------------------------------------------------------------------------------