我已经在 IIS 上为 windows 7 启用了经典 asp 支持,并为经典 asp 配置了 IIS web,但 .asp 页面没有显示? [英] 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?
问题描述
我的.asp页面在名为MyWeb"的文件夹中,MyWeb"文件夹在inetpub下的wwwroot文件夹下.我还在 IIS 管理器中为 .asp 添加了 MIME 类型作为应用程序/asp,对于 .aspx 作为应用程序/aspx 我尝试了很长时间但仍然无法正常工作.当我打开那个 .asp 文件时,它要求在 IE 浏览器中下载并在 Mozilla Firefox 中显示一个空白页面.请任何机构告诉我如何解决这个问题?
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?
答案=
问题解决了我刚刚更改了 IIS 管理器中的设置,将启用父路径设置为 true,并将错误发送到浏览器设置为 true,然后它就发生了.显示IIS的Localhost主页,我的asp脚本也在运行.
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.
推荐答案
您可能没有在 IIS 中安装 Classic ASP 支持.要在 Windows 7 中执行此操作,请按照以下步骤操作;
It possible that you haven't got Classic ASP support installed in IIS. To do this in Windows 7 follow the steps below;
转到
控制面板
->程序和功能
从左侧导航栏中选择
从 Windows 功能
对话框中展开 Internet 信息服务
-> 万维网服务
-> 应用程序开发功能
并勾选选项 ASP
这也将勾选 ISAPI Extensions
如果尚未勾选(见图).
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).
为经典 ASP 配置 IIS Web
打开
Administrative Tools
->Internet Information Services (IIS) Manager
并选择您要配置的网站.
Open
Administrative Tools
->Internet Information Services (IIS) Manager
and select the website you wish to configure.
在 IIS
部分下的 Features View
中,选择 Handler Mappings
检查为指向的处理程序显示的现有映射列表*.asp
如果不存在,请从右侧导航栏中选择Add Script Map
.
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.
按照下图填写选项
重要事项 如果使用 64 位并希望启用 32 位支持,您可能希望使用 32 位等效的 ISAPI DLL.请参阅Dee 对如何在 IIS7.5 中启用 ASP 经典版的回答
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
选择Request Restrictions
按钮以打开Request Restrictions
对话框.下面的三张图片详细说明了如果尚未设置应配置的值.
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.
这篇关于我已经在 IIS 上为 windows 7 启用了经典 asp 支持,并为经典 asp 配置了 IIS web,但 .asp 页面没有显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!