How do I setup IIS 7.5 for Classic ASP on windows 7?

后端 未结 3 1734
没有蜡笔的小新
没有蜡笔的小新 2021-01-24 22:22

I\'m a java developer that has been tasked with some Classic ASP work. I\'m trying to setup IIS 7.5 in Windows 7 64 bit and was able to get the server configured to get the loc

相关标签:
3条回答
  • 2021-01-24 23:05

    I used the information from this link: How to setup IIS 7 for Classic ASP. Even though I was using IIS 7.5, I followed the same instructions, except that I added in a virtual directory.

    Then I commented out the offending lines in the global.asa file. Basically it was pointing to the registry to get server information, hence my error as I was trying to run things locally on my machine.

    After that I was able to hit the default.asp at the root and bring it up.

    0 讨论(0)
  • 2021-01-24 23:06

    Step 1. Create root folder for your site and move all your files, folders into it.

    Step 2. Create application pool and make sure that you assigned it to run as no managed code. Pipeline as classic. Make sure that your site have this app pool assigned to it.

    enter image description here

    Step 3. Enable ASP in your IIS Management panel. By default in IIS 7+ it is disabled.

    Step 4. Verify that your ISAPI restrictions points to proper dlls to run ASP not asp.net.

    Step 5. Define default documents

    Step 6. Run your site

    enter image description here

    In regards of debugging classic asp - you can dream about it. Only way to debug those suckers is to use response.write before and after each line of code where you suspect failure occurs. Visual studio does not provide any tools to debug classic asp sites. To work with your classic ASP site in VS2010 you will need to open it as a web site not a project. Just use open web site and point to the folder where your site lives.

    0 讨论(0)
  • 2021-01-24 23:15

    IIS 7.5 on 64bit has dissabled ASP Classic because is 32bit native code. You need activate the 32bit option on IIS check this tutorial from microsoft: http://www.iis.net/learn/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis

    0 讨论(0)
提交回复
热议问题