|
 |
aspx_beginners thread: RE: cannot view aspx pages on localhost with XP IIS
Message #1 by "Minh T. Nguyen" <nguyentriminh@y...> on Fri, 31 May 2002 16:03:27 -0700
|
|
Hi there,
One thing to note is that ASP.NET does not work on XP Home. It's
officially only supported on XP Professional, but not home. However,
there have been users who were able to get it working on XP Home as
well. See
http://www.developersdex.com/asp/message.asp?p=577&ID=%3C3c3c9b9d%2E5186
63173%40news%3E
If you have XP Pro already, show us the code you are trying to
run.
Minh.
-----Original Message-----
From: REdwards@c... [mailto:REdwards@c...]
Sent: Friday, May 31, 2002 11:37 PM
To: aspx_beginners
Subject: [aspx_beginners] cannot view aspx pages on localhost with XP
IIS
I have Win XP and IIS installed on my machine and I cannot view the aspx
pages in my c:\InetPub\wwwroot directory.
-Correction, I can view the page but I cannot see the ASP.NET generated
code. This is code downloaded from a book site and there aren't any
errors
in the code.
I have Visual Studio .NET which installed the Framework so I can't think
of anything I could be missing?
But it must be something?
Message #2 by REdwards@c... on Sat, 1 Jun 2002 00:24:52
|
|
I have XP Pro. I am just trying to run this sample code from ASP.NET
Unleashed. I downloaded the source files and cannot view any of the pages.
I noticed that I could not find the aspnet_eisapi.dll file on my system,
but I installed the Framework and th FP Extensions with VS.NET.
All of the source files are in the Inetpub\wwwroot folder. I am accessing
in the browser with http://localhost/pagename.aspx. For this file only
the "Click on the link below..." shows up.
<Script Runat="Server">
Sub Page_Load
If TimeOfDay > #5:00pm# Then
lnkHelpLink.NavigateUrl = "AfterHoursHelp.aspx"
lnkHelpLink.Text = "After Hours Help"
Else
lnkHelpLink.NavigateURL = "Normalhelp.aspx"
lnkHelpLink.Text = "Help"
End If
End Sub
</Script>
<html>
<head><title>HyperLink.aspx</title></head>
<body>
<form Runat="Server">
Click on the link below to receive
a list of contact phone numbers for help
information:
<p>
<asp:HyperLink
id="lnkHelpLink"
Runat="Server" />
</form>
</body>
</html>
Message #3 by Sep15@a... on Fri, 31 May 2002 20:26:09 EDT
|
|
--part1_10c.12aa0ac3.2a296ea1_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
I think I had the same problem. IIS has to be running before you install
asp.net.
Message #4 by "Dan McKinnon" <mddonna@q...> on Sun, 2 Jun 2002 10:30:53
|
|
A couple things might help you determine what's going on.
You can test if IIS is serving regular pages and normal (non-.net) pages
by opening a browser and typing 'localhost' in the address bar and
hitting enter. If you get the default two browser windows (one says MS
Windows [xp or win2k] stuff and the other says IIS help documentation and
is primarily black in color, and they are both smaller than your monitor
screen).
By the way, IIS is not installed by default with either Win2K Pro or XP
Pro. You have to go to Install/Remove Software/Add or Remove Windows
Components and click the checkboxes of 'auxiliary' software you want to
install and then do that. While you are at it, you might want to install
some other 'auxiliary' software.
The other way to test if IIS is running is to open up the IIS snap-in
(Start/Settings/Control Panel/Administrative Tools/Internet Information
Services). In XP it's a little different - Start/Settings/Control Panel/
Performance and Maintenance/IIS. Expand 'local computer' and 'Web Sites'
and right-click on 'Default Web Site.' Whatever is grayed out lets you
know whether IIS is running or not. If Start is grayed out, then IIS is
running. If Stop is grayed out, then IIS is not running.
If IIS is running and it serves up whatever the default document in
inetpub/wwwroot is (and this is never an .aspx file to my knowledge, at
least not yet) then at least you are pretty well situated to install
the .NET framework again. Like the other post said, IIS has to be
functional, present, and I guess even running to install the framework.
But before you do that make sure you have MDAC 2.7 installed and also the
new Windows installer. This is done for you, I think, if you install
VS.NET.
If you already know any of the above, I apologize if this sounds
condescending, but might as well just tell it like it is so we are all on
the same page. Maybe someone will comment on what I've written above and
it will turn out I have some things to learn also. But it's all part of
the process. You learn by teaching.
Dan
Message #5 by REdwards@c... on Mon, 3 Jun 2002 17:43:20
|
|
I found the article here: http://support.microsoft.com/search/preview.aspx?
scid=kb;en-us;Q306005. Is was like suggested, IIS has to be installed
before the Framework is installed.
Thanks to everyone for pointing me in the right direction.
Robert Edwards
|
|
 |