|
 |
aspx_beginners thread: Response.Write("Hello World") works if .asp not if .aspx !?
Message #1 by "Craig Austin" <craig.austin@s...> on Tue, 9 Jul 2002 09:30:37
|
|
I cannot get my web server to execute any code in files with the .aspx
extension, code is simply returned to the browser as text. Works OK if the
file is stored as .asp. I navigate to the file using http://localhost/...
etc. I have installed Visual Studio .NET and am running it on a Windows
2000 Advanced Server machine. Any suggestions?
eg.
<html>
<head>
<title>Test</title>
</head>
<body>
<center>
<h2>Hello World Test</h2>
<p><%Response.Write("Hello World!")%></p>
</center>
</body>
</html>
Message #2 by "Charles E. Brown" <chabrown@b...> on Tue, 9 Jul 2002 06:54:34 -0400
|
|
Craig:
Did you set the virtual directory in IIS?
Double check that.
Charles
-----Original Message-----
From: Craig Austin [mailto:craig.austin@s...]
Sent: Tuesday, July 09, 2002 9:31 AM
To: aspx_beginners
Subject: [aspx_beginners] Response.Write("Hello World") works if .asp
not if .aspx !?
I cannot get my web server to execute any code in files with the .aspx
extension, code is simply returned to the browser as text. Works OK if
the
file is stored as .asp. I navigate to the file using
http://localhost/...
etc. I have installed Visual Studio .NET and am running it on a Windows
2000 Advanced Server machine. Any suggestions?
eg.
<html>
<head>
<title>Test</title>
</head>
<body>
<center>
<h2>Hello World Test</h2>
<p><%Response.Write("Hello World!")%></p>
</center>
</body>
</html>
Message #3 by Simon Hargreaves <Simon.Hargreaves@c...> on Tue, 9 Jul 2002 12:05:49 +0100
|
|
In the MMC, you should also check that the site is running, from a right
click over the appropriate site, or single left click and the go arrow at
the top of the screen.
SAM
-----Original Message-----
From: Charles E. Brown [mailto:chabrown@b...]
Sent: 09 July 2002 11:55
To: aspx_beginners
Subject: [aspx_beginners] RE: Response.Write("Hello World") works if
.asp not if .aspx !?
Craig:
Did you set the virtual directory in IIS?
Double check that.
Charles
-----Original Message-----
From: Craig Austin [mailto:craig.austin@s...]
Sent: Tuesday, July 09, 2002 9:31 AM
To: aspx_beginners
Subject: [aspx_beginners] Response.Write("Hello World") works if .asp
not if .aspx !?
I cannot get my web server to execute any code in files with the .aspx
extension, code is simply returned to the browser as text. Works OK if
the
file is stored as .asp. I navigate to the file using
http://localhost/...
etc. I have installed Visual Studio .NET and am running it on a Windows
2000 Advanced Server machine. Any suggestions?
eg.
<html>
<head>
<title>Test</title>
</head>
<body>
<center>
<h2>Hello World Test</h2>
<p><%Response.Write("Hello World!")%></p>
</center>
</body>
</html>
Message #4 by "Charles E. Brown" <chabrown@b...> on Tue, 9 Jul 2002 07:52:12 -0400
|
|
Craig:
A couple of other things:
Check your Services to make sure .NET Framework is started and, if it
is, go back to last month's archives of this forum and look up a message
that I posted. There is a file to insure that Framework is properly
installed in the registry. If you had an antivirus program running at
the time of installation it could affect the registry install.
If you cannot find the file, email me and I will go back and try to dig
it out.
Charles
-----Original Message-----
From: Craig Austin [mailto:craig.austin@s...]
Sent: Tuesday, July 09, 2002 9:31 AM
To: aspx_beginners
Subject: [aspx_beginners] Response.Write("Hello World") works if .asp
not if .aspx !?
I cannot get my web server to execute any code in files with the .aspx
extension, code is simply returned to the browser as text. Works OK if
the
file is stored as .asp. I navigate to the file using
http://localhost/...
etc. I have installed Visual Studio .NET and am running it on a Windows
2000 Advanced Server machine. Any suggestions?
eg.
<html>
<head>
<title>Test</title>
</head>
<body>
<center>
<h2>Hello World Test</h2>
<p><%Response.Write("Hello World!")%></p>
</center>
</body>
</html>
Message #5 by "Craig Austin" <craig.austin@s...> on Wed, 10 Jul 2002 02:41:59
|
|
Thanks for the suggestions. I think because I reinstalled IIS after
installing the .NET Framework SDK, ASP.NET was not registered properly
(aspnet_isapi.dll). I have reinstalled the SDK and now all seems to be
working OK.
Cheers
Craig
> Craig:
A couple of other things:
Check your Services to make sure .NET Framework is started and, if it
is, go back to last month's archives of this forum and look up a message
that I posted. There is a file to insure that Framework is properly
installed in the registry. If you had an antivirus program running at
the time of installation it could affect the registry install.
If you cannot find the file, email me and I will go back and try to dig
it out.
Charles
|
|
 |