Need IIS Configuration Help for ASP documents.

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

Background

I'm running Windows 2003 Server. I have IIS installed and it's running. In IIS Manager under my server, I have three directories - Application Pools, Web Sites, and Web Extensions.

Application Pools is DefaultAppPools and is "running"
Under Web Extensions I have the following "allowed": Active Server Pages, ASP.NET v1.1.4322, Internet Data Connector, Server Side Includes, and WebDAV
Under WebSites I have a subdirectory for my website called "atnopro" and it's set to a default directory in Inetpub/wwwroot/atnopro


The Problem
I can't get .asp files to execute (HTML files display just fine) - Using MSIE 6

Additional info
I'm using the following script to test ASP
Code: [ Select ]

         <%@ Language="VBScript" %>
 <% Option Explicit %>
     <!--- This page should display "ASP is working!" --->

 <!--- if ASP is available to you. --->



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<HEAD>


    
   <TITLE>ASP Test Page</TITLE>
  </HEAD>

  <BODY>
        


   <% Dim TestString %>
   <% TestString = "ASP is Working!" %>

   <H1>

    <% Response.Write TestString %>

   </H1>
  </BODY>
 </HTML>
  1.          <%@ Language="VBScript" %>
  2.  <% Option Explicit %>
  3.      <!--- This page should display "ASP is working!" --->
  4.  <!--- if ASP is available to you. --->
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  6. <html>
  7. <HEAD>
  8.     
  9.    <TITLE>ASP Test Page</TITLE>
  10.   </HEAD>
  11.   <BODY>
  12.         
  13.    <% Dim TestString %>
  14.    <% TestString = "ASP is Working!" %>
  15.    <H1>
  16.     <% Response.Write TestString %>
  17.    </H1>
  18.   </BODY>
  19.  </HTML>


I uploaded this code to my internet domain as default.asp and it executes fine, so I know the script is good. It won't execute on my local server. What it does do is display a blank page. When I hit refresh it displays a text version of the above code in my browser window.

I did notice when I checked properties on my server that there was no MIME type for .asp, so I added .asp with a MIME type of application/x-asap

Still no joy. For my IIS website properties I have SCRIPT SOURCE ACCESS, READ, and WRITE "enabled". Execute Permissions are set to "Script Only" and Application Pool is "Default AppPool". Default Script language is VBScript.

I know I'm probably missing something very simple, but after 3 hours of trying to do it myself, I figured it was time to ask for help. Thanks in advance.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9099
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

I do not know much about IIS, but it almost sounds like maybe you do not have ASP interpreter installed on the server? (if there is such a think, I am guessing here) I would think if you had it installed it would have added the mime types for you. Anyway does ASP come installed or do you have to install it?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

That's the thing...I don't know. *shrug. When I use PWS with Win98, all I had to do was install PWS, start it and save my .asp files in wwwroot and no prob. The install of IIS was simple enough and it included the install of the web server. ASP and ASP.NET by default were initially set to disallow, but I changed that first thing as noted in my post.

Nothing in the install instructions, or help files seem to indicate that anything else is necessary, and I could find no additional help in the MS knowledge base.
  • £het®
  • Newbie
  • Newbie
  • User avatar
  • Posts: 5

Post 3+ Months Ago

I guess most of the guys here are more experienced with apache on linux...

ATNO/TW,

asp comes with IIS be default. you might have missed a configuration or something.

Check this out:
1. Using IIS Manager, right click on your web
2. Select Properties from the list
3. Select Home Directory Tab
4. Execute Permissions shouldn't be "none"
5. Click on "Configuration"
6. Under mappings, check for ".asp" extension set to "C:\WINDOWS\System32\inetsrv\asp.dll" or something...
7. Save everything, restart your web service and boom...

hope it helps.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 77 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.