Results 1 to 14 of 14
  1. #1
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Setting up a Home Test Web Server in Windows XP

    Can anyone give me simple Guidelines for the steps required to set up a test web server at home.
    Or give me a location or reference as to how this should be configured?

    I want to be able to use HTML, ASP and ASP.NET

    I have VB6 and VB.Net installed
    I have just installed IIS

    I have put a simple app together ( 1 page) in the standard root folder
    C:InetPubwwwroot

    I guess I have messed up the configuration somewhere because

    If I use a page like index.htm then when I use http://localhost in my browser it works fine
    But if I point it at a similar page index.asp then I just get an error

    Server Application Error
    The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.

    The Event Log says
    The server failed to load application '/LM/W3SVC/1/Root'. The error was 'Class not registered '.

    Also if I click on the ASP NET tab in the IIS configuration window the whole thing crashes with an illegal operation message.

    I have no issues with the ASP and ASP NET coding
    I just cannot get the %^&^&* thing to work.

    I've done something stupid, but I don't know what
    so any help would be very very good.

    I've tried getting information from Google but nothing seems to assist me.

    Many Thanks (in advance)
    Andrew

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting up a Home Test Web Server in Windows XP

    I'm not sure why you're having problems with a standard ASP page. Can you provide any details about the code that's being executed in the page?

    As for your ASP.NET problems, you can try to run ASPNET_REGIIS.EXE -i (located in C:WindowsMicrosoft.NETFrameworkv1.1.4322).
    This will in essence reinstall ASP.NET for IIS. This has often helped fix problems I've encountered with IIS and the .NET framework.

    Also, if all else fails, you might try completely removing IIS and reinstalling. You will probably need to run ASPNET_REGIIS.EXE -i before you can use any .NET applications with IIS.

    Hope this helps

  3. #3
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Setting up a Home Test Web Server in Windows X

    Here is the simplest scenario I could set up.

    These files are in C:Inetpubwwwroot
    Called with http://localhost

    Index.htm

    <html>
    <head>
    <title>
    This is the Test Start Page
    </title>
    </head>
    <body>

    <form name="login" METHOD="POST" action="entertest.asp?submitted=true">
    <input type="text" name="txtName" value="Enter Your Name">
    <input type="submit" name="cmdSubmit" value="Submit">
    <input type="reset" name="cmdReset" value="Reset">
    </form >


    </body>
    </html>

    This works just fine .....

    the asp file entertest.asp is as below

    <%@ Language=VBScript %>
    <%
    if Request("Submitted")="true" then
    Response.Write "Request(txtname)= " & Request("txtname") & ""
    Response.End
    end if
    %>

    <html>
    <head>
    <title>
    This is the Response Page
    </title>
    </head>
    <body>
    ................................


    </body>
    </html>


    I am probably just doing something stupid, but I'd like to know what.
    Andrew

  4. #4
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Setting up a Home Test Web Server in Windows X

    Also, even stranger but maybe not

    If I run the following VBnet .aspx page using

    http://localhost/time.aspx

    <%@ Page Language="vb" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>WHY DOES THIS NOT WORK</title>
    </head>
    <body>
    <h1>hello it is <% Response.Write(Now().ToString("t")); %></h1>
    </body>
    </html>

    All I see is

    hello it is

    Even if I change th response.write line to ("Why doesn't this work!")
    NOTHING.

    It appears to be ignoring the coding.

    However, the Browser works fine with normal web sites.
    Either Firefox (preferred) or IE6.

    Hmmmmmm! Help!
    Andrew

  5. #5
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting up a Home Test Web Server in Windows X

    Your code looks fine. Have you tried running the command I suggested in the previous post? That *should* fix the problem...

  6. #6
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Setting up a Home Test Web Server in Windows X

    Did that, it made no difference at all.

    I even removed IIS and re-built the lot again

    Still get exactly the same errors

    ASP Pages giove the server error
    aspx pages only run the html code none of the writes.

    I am well and truelyu stuck.

    I am now going to try and build this on another machine.
    Andrew

  7. #7
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting up a Home Test Web Server in Windows X

    One more thing you may want to try is to run the .NET Framework SDK setup. You can find it here. I've seen this fix similar problems before.

    It sounds like your .NET Application Configuration settings have become corrupted (since the ASPNET_REGIIS didn't work).

    If that doesn't work, the machine is probably become FUBAR and a rebuild on a different machine is your best bet.

  8. #8
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Setting up a Home Test Web Server in Windows X

    I don't know at what step in the process you do this, but you generally need to open the web server MMC snap-in and designate that the root folder (or wherever you put your ASP pages) is an "application" before IIS starts running your .asp pages through ASP.DLL (not sure about .Net).

  9. #9
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Setting up a Home Test Web Server in Windows X

    Maybe I haven't done this bit.
    Can you define the propcess needed to

    1. Open the snap in
    2. Define the folder as an application

    Then I will know if I have done this.
    Andrew

  10. #10
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Setting up a Home Test Web Server in Windows

    Oh Joy.

    I built the whole lot on a Windows 2000 Pro machine.

    The htm and asp pages work just fine

    But even though I installed the Net Framework SDK 1.1 on it I cannot run the aspx
    pages at all.
    Andrew

  11. #11
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Setting up a Home Test Web Server in Windows X

    You're really testing my memory here! <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

    I think you can start up the IIS snap-in using Start>Run>iis.msc <enter>, or from somewhere on the Start>Programs>Administrative tools menu.

    If you right-click the folder you want to be an application, that either is an option there or in one of the dialogs.

    Sorry I don't remember the details. <img src=/S/sad.gif border=0 alt=sad width=15 height=15> I probably followed a recipe from a book.

  12. #12
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Setting up a Home Test Web Server in Windows X

    Actually if by this you mean you have top set up the virtual directory

    Start=>Administrative Tools=>Internet Information Services

    Then this is done, but it still fails to work on the one XP Pro Machine.
    And I cannot get ASP.Net to run on the Windows 2000 Pro machine

    Such is life!
    Andrew

  13. #13
    5 Star Lounger AndrewKKWalker's Avatar
    Join Date
    Apr 2001
    Location
    Cambridge, UK
    Posts
    1,020
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Setting up a Home Test Web Server in Windows X

    I did this and something even stranger happened.

    1. It still doews not work
    2. I no longer have the ASP NET tab in the IIS Configuration form
    Start=>Administrative Tools=>Internet Information Services

    Also, I appear to have three Framework Folders Noow under

    Windows => Microsoft.Net => Framework
    v1.0.3705
    v1.1.4322
    v2.0.40607

    I guess I am losing this battle big time,
    and this is meant to be the easy bit.
    Andrew

  14. #14
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Setting up a Home Test Web Server in Windows X

    The 3 framework folders are each from a different version of the ASP.NET Framework - 1.0, 1.1, and 2.0. As you may know, the 2.0 framework is still technically Beta. If I had known that you installed the 2.0 Framework my answers would have been somewhat different. All of my suggestions *assumed* that the 1.1 framework was the current version - it's no surprise that they didn't work.

    At this point you'll need to either check with Microsoft for support options on the 2.0 (beta) framework or rebuild the machine for best results.

    Good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •