How to : Run classic ASP/ASP.NET on IIS 7

logo_dotNET

After installed IIS7, some people might find that classic ASP or even ASP.NET are not be able to run on the new IIS. Example test, http://localhost/test.asp or http://localhost/test.aspx

By default, the IIS is not configured for classic ASP (crab!), but do not worry, you just have to follow the simple 2 steps:

1) Go to Control Panel > Programs and Features > click Turn Windows features on and off

2) Navigate down the tree of features and make sure ASP is checked(checked ASP.NET if you want to run ASP.NET too). It should be under Internet Information Services (IIS) Manager > World Wide Web Services > Application Development Features. Press OK when done.

step1step2

p/s: There are many reasons to cause the classic ASP & ASP.net are not running well in local PC. Normally this solution is apply to those who installed the new IIS.

7 Responses to How to : Run classic ASP/ASP.NET on IIS 7

  1. rafat

    hi i am rafat i am setup a IIS to my computer(windows 7) and then i am doing the above 2 step . then i am going to IE and write on title http://localhost/project/home.aspx , but it is not open a page only it is tell me you have an error as follow :
    76: ASP.NET to identify an incoming user.
    السطر 77: –>
    السطر 78:
    السطر 79: <!–
    السطر 80: The section enables configuration

    note :i am transfer my website to wwwroot
    please help me to solve this problem ,send the solution to my e_mail:mount.mount8@gmail.com
    thanks administrator

  2. Jason Goh

    Hi rafat,

    I guess your error message is not complete provided.
    Please post it again. And dont provide your email address here, later you will get spam… ;)

  3. rafat

    hi jason goh
    i am rafat , i am sorry for it .
    my error is:
    line 79: ASP.NET to identify an incoming user.
    line 80: –>
    line 81:
    line 82: <!–
    line 83: The section enables configuration

    note: i am not doing a Virtual directory. and a i am unknown to do that on windows 7.
    ———————————————————————–
    help me
    thanks jason

  4. rafat

    hi
    i am sorry
    line 80:authentication mode=”Windows”

  5. Jason Goh

    Hi rafat,

    There are many reasons to cause this error, but the mos common is caused by a virtual directory is not being configured as an application in IIS.

    And in your note, you said you are not using Virtual directory, so i guess this caused the error.

    What you can do is, remove the whole line or tag “<authentication mode=”Windows” />” or change the mode from “Windows” to “Forms”.

    Hope this helps.

  6. rafat

    hi

    how to make a virtual directory on windows 7 ?

    thanks

  7. Jason Goh

    To create a virtual directory, run your IIS Manager (I’m using IIS7.0):
    - In IIS Manager, expand the local computer(might be your PC’s name) and Sites folder on the left hand side panel, and then find the web site that you want to add a virtual directory or you can right-click the “Sites” or folder where you want to create the virtual directory, and then click “Add Web Site…”.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">