RaysWebClass.Com - IIS



In order to write web content on your home computer you need to install a Web Server. Simple web content does not require this, but we will be going well beyond simple web content, we will be learning ASP which requires a Web Server in order to run properly.

Installing Leopard on a MAC:

Follow these instruction to install Leopard on your MAC Computer for Web development.
(Thank you Matt Conard for your help with these instructions!)

  1. Installing IIS/ASP in Windows 11:

    To turn on ASP do the following:
    • In the Seach box type: Control Panel
    • Click Programs and Features
          (If you don't see Programs and Features, click on View by:   Large Icons     (upper right corner)
    • Click Turn Windows features on or off     (Upper Left)
          (The Windows Features dialog will Open. (May take a few seconds...))
    • Click the and expand it (click the ) in front of:
          Internet Information Services
    • Click the in front of Web Management Tools
    • Click the in front of World Wide Web
    • Click the in front of:
          World Wide Web Services
    • Click the in front everything
    • Expand (click the ) in front of:
          Application Development Features
          Check (click the ) in front of all.
    • Go back to Internet Information Services
    • And expand Web Management Tools
    • Click the in front of:
          IIS Metabase and IIS6 configuration compatibility
    • Click OK (it will take a few minutes to install ASP)
    • You may close Programs and Features now

    • Turn Off Show friendly HTTP errors messages.
          From the Browser Click: [ALT]->Tools->Internet Options->Advanced->Browsing->
           Show friendly HTTP errors messages


  2. Configuring IIS/ASP in Windows 11:

    • Start --> Computer --> Hard Drive C: --> Windows --> System32 --> inetsrv --> InetMgr.exe
          This will bring up Internet Information Services (IIS) Manager
    • On the far left you will see the name of your computer
          Click the expand button in fron of it.
    • Click the expand button in fron of Site and click Default Web Site
    • Now on the right Under IIS double Click ASP
    • Under Behaviour find Enable Parent Paths     double click to switch it to True
    • Expand Debugging Properties (Click the )
    • Double Click Send Errors to Browser switch it to True
    • On the far right Click Apply this will save the changes
    • On the far left Click Application Pools
    • Now right left Click Application Pools and select Add Application Pool
    • Fill out the form like this:
          Name: asp2
          .NET Framework version: .NET Framework v2.0.50727
          Managed pipline mode: Classic
          Click Start application pool immediately
          Click OK
    • Find you new Application Pool (asp2), right click, select Advanced Settings
          and set Enable 32 Bit Application to True
    • Close the window and the computer will ask you if you want to save the changes.
    • Say Yes
    • The last thing is to make sure your Web Site uses your new Application Pool
    • In the far left, right Click on Default Web Site
    • Select Manage Web Site
    • Select Advanced Settings
    • Click on Application Pool and select your new Application Pool (asp2)
    • Click OK

    Viola! You are now ready to program in ASP!


    Troubleshooting:

    If the wwwroot folder is write protected.
    (Gives you a permission denied error when you try to save or create a file).
    Try the following:
    • Go to the Inetpub folder and right click on the wwwroot folder.
    • Choose Properties and click the Security tab.
    • Click the Edit button and check Allow full control for the following:
      • Yourself (your user name)
      • Administrators (may already be done)
      • Users IIS_IUSERS

    If your computer will not connect to Microsoft Access Database.
    Try the following:
    • Right Click Start; Choose Search; Type CMD [Enter] OR
    • CMD Line: (Start->(in the box "Search programs and files" type: CMD [Enter]
      Copy and paste the code below into the Black & White CMD window and hit Enter
      appcmd.exe set config -section:system.applicationHost/applicationPools /[name='DefaultAppPool'].processModel.loadUserProfile:"False" /commit:apphost






  3. Testing your Web Service:

    • In Notepad enter the following 7 lines of code:   (hit Enter after each line.)

      <HTML>
      <BODY>
      <%
      Response.Write "<H1>Hello World!</H1>"
      %>
      </BODY>
      </HTML>
    • Save the file as: Test.asp in the wwwroot folder.

      NOTE: Your computer must have the DOS Extensions turned on in order to save the program as Test.asp (If you have not done this, click here.)

    • Open your Browser and type: http://localhost/Test.asp into the Address Box, hit Enter.

    • The Browser should open with Hello World! written in big black letter.

      If this is the case, congratulations, you've successfully installed your Web Server.

  4. To make edits to your Test.asp file, you will want to make Notepad your default HTML editor.

    NOTE: To make Notepad your default editor, click here

  5. As a matter of fact, any pages saved in the wwwroot folder are published (that is, viewable from the World Wide Web). If you are online and you know your IP, you (are anyone anywhere for that matter) can view your web pages by typing in http://, followed by your IP, a slash, and the file name. For example if your Web Page name is Test.asp and your IP is 185.93.229.19, you would type http://185.93.229.19/Test.asp to view the Test page from anywhere in the world!

  6. To view your web pages locally (from your computer) use this short cut address:

    http://localhost/Test.asp