I have already enabled classic asp support on IIS for windows 7, and configured IIS web for classic asp,Yet .asp page is not being displayed? [closed]

ぃ、小莉子 提交于 2019-12-20 07:46:26

问题


My .asp page is in the folder named "MyWeb", and "MyWeb" folder is under wwwroot folder which is under inetpub. I also added MIME types in IIS Manager for .asp as application/asp, and for .aspx as application/aspx I tried it a long but still it is not working. When I go to open that .asp file it is asking for download in IE browser and displaying a blank page in Mozilla Firefox. Please can any body tell me how to solve this issue?

ANSWER=

Issue solved I just changed the setting in IIS Manager set Enable Parent Paths to true and Send Errors To Browser to true and it happened. Localhost Home Page of IIS was displayed and my asp scripts are also running.


回答1:


It possible that you haven't got Classic ASP support installed in IIS. To do this in Windows 7 follow the steps below;

How to enable Classic ASP support on IIS for Windows 7

Installing Classic ASP support

  1. Goto Control Panel -> Programs and Features

  2. Select from the left navigation bar

  3. From the Windows Features dialog expand Internet Information Services -> World Wide Web Services -> Application Development Features and tick the option ASP this will also tick ISAPI Extensions if not already ticked (see image).

Configuring IIS Web for Classic ASP

  1. Open Administrative Tools -> Internet Information Services (IIS) Manager and select the website you wish to configure.

  2. In Features View under the IIS section select Handler Mappings check the existing mappings list that appears for a handler that points to *.asp if one doesn't exist select Add Script Map from the right hand navigation bar.

  3. Fill in the options as per the below image

    IMPORTANT If using 64-bit and want to enable 32-bit support you may wish to use the 32 bit equivalent ISAPI DLL. See Dee's answer to How to enable ASP classic in IIS7.5

  4. Select the Request Restrictions button to open Request Restrictions dialog. The three images below detail the values that should be configured if not already set.



来源:https://stackoverflow.com/questions/22474416/i-have-already-enabled-classic-asp-support-on-iis-for-windows-7-and-configured

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!