Re: IIS 5.1 do only read ordinary HTML

From: George Hester (hesterloli_at_hotmail.com)
Date: 12/12/04


Date: Sun, 12 Dec 2004 12:11:24 -0500

Two tests to see if your HTTP server is working:

1) Make a simple asp file such as:

<%@language="VBScript"%>
<%="Hello"%>

Put that in a file called hello.asp and put that in C:\Intetpub\wwwroot.

Then see if this works:

http://localhost/hello.asp

2) To test for ASP.NET you must install the .NET Framework 1.1 and then in the command prompt navigate to:

C:\Windows\Microsoft.NET\Framework\v1.1.4322 and then type this:

aspnet_regiis -i

That should do all that is necessary:

http://support.microsoft.com/default.aspx?scid=kb;en-us;306005

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfASPNETIISRegistrationToolAspnet_regiisexe.asp

Then make this file:

<%@language="VB"%>
<%
HelloWorld.InnerText = "Hello World!"
%>
<html>
<head>
<title>Hello World!</title>
</head>
<body style="background-color: #FFFFFF;">
<p id="HelloWorld" runat="server"></p>
</body>
</html>

Save it as hello.aspx and put it in C:\Inetpub\wwwroot.

Then see if this works:

http://localhost/hello.aspx

If you have no issues then your server is ready to go. You only need be sure your ISP is not blocking port 80 on you. A common thing this day and age.

-- 
George Hester
_________________________________
"NOVICE.NET" <NOVICE.NET@discussions.microsoft.com> wrote in message news:50793584-13A5-43FD-AEF1-2A0EFBAFF201@microsoft.com...
> I'm a Novice running IIS, XP pro, and Dreamweawer. But trying to run ASP or 
> ASP.NET the IIS do only read HTML from the script, without any error msg or 
> spagetti code shown.  
> Beside work, I have spent (at least) a month trying to figure out this, 
> going thru the settings, reading FAQ's, and in frustration, eaven books and 
> manuals.  Anyone able to help me thru this, will most likely save the 
> Chrismas for me and my family.
> NOVICE.NET


Relevant Pages

  • Re: HttpListener in VS2005
    ... with jar files (html file having jarfile. ... sending binary data to client ...that time i am getting this error. ... > you're desire is to host your own HTTP server all in you own code. ... i am getting error "cannot close output stream ...
    (microsoft.public.dotnet.framework.aspnet)
  • IIS 6.0 caching pages and unable to refresh page on workstation
    ... Just trying to find out why when I make a change to a html / asp file, ... page doesn't get refreshed when I press F5 or CTRL-F5. ... I tried using the internal server name and the public domain name to see if ... It's just a simple html page with no code in it. ...
    (microsoft.public.inetserver.iis)
  • Re: Win2000 cannot password protect .asp page
    ... I am not too sure what is in the asp file you've tested with the error, ... They work fine if you're trying to access .html pages. ... Win2000 cannot password protect .asp page ... > user login and password just fine. ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASPX not working - ASP ok
    ... HTML code only? ... The webserver will only send HTML to the client, ... it is probably either because IIS ... > I had trouble getting simple ASP file to run but solved ...
    (microsoft.public.inetserver.iis)
  • Re: ASPX not working - ASP ok
    ... HTML code only? ... >Do you also see server side code? ... >Kristofer Gafvert - IIS MVP ... >> I had trouble getting simple ASP file to run but solved ...
    (microsoft.public.inetserver.iis)