我已经在 Windows 7 的 IIS 上启用了经典 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 类型作为 application/asp,对于 .aspx 作为 application/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 管理器中的设置,将 Enable Parent Paths 设置为 true 并将 Send Errors To Browser 设置为 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 Features
对话框展开 Internet Information Services
-> 万维网服务
-> 应用程序开发功能
并勾选选项 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.
这篇关于我已经在 Windows 7 的 IIS 上启用了经典 asp 支持,并为经典 asp 配置了 IIS web,但是 .asp 页面没有显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!