ASP Classic 设置问题 [英] ASP Classic setup issues
问题描述
我是 Classic ASP 的新手,我一直在尝试设置它,但我一直遇到错误消息.我在 Windows 7 上使用 IIS7 并确保已安装 IIS 等.我创建了一个驻留在 C:inetpubwwwroot
中的应用程序,并且在该目录中我有一个名为 page.asp
.但是,每当我进入 Chrome 浏览器并输入 localhost
时,它都会显示蓝色的 IIS 页面,但是当我输入 localhost/page.asp
时,它会给我以下错误信息:
I am a complete novice to Classic ASP and have been trying to set it up, but I keep running into an error message. I am using IIS7 on Windows 7 and have made sure that IIS is installed, etc. I have created an application that resides in C:inetpubwwwroot
and in that directory I have a file called page.asp
. However, whenever I go to my browser which is Chrome and type in localhost
it shows me the blue IIS page but when I type in localhost/page.asp
it gives me the following error message:
处理 URL 时服务器发生错误.请联系系统管理员
An error occurred on the server when processing the URL. Please contact the system administrator
我无法弄清楚我做错了什么.我已经确定ASP和IIS都启用了,页面中的代码很简单
I cannot figure out what I am doing wrong. I have made sure that ASP and IIS are both enabled, and the code in the page is a simple
<html>
<%Response.Write("Hello world")%>
</html>
你能帮帮我吗?
推荐答案
您可能缺少您的网站或服务器的处理程序映射(可以在多个级别进行配置.我个人将其设置在服务器级别并让它向下继承并根据需要启用或禁用.
You are probably missing the Handler Mappings either for your website or the server (can be configured at multiple levels. Personally I set it at the server level and let it inherit down and enable or disable as appropriate.
此答案包含设置它所需的所有信息 - 答案 - 如何在 IIS7.5 中启用 ASP 经典
This answer has all the information you need to set it up - Answer - How to enable ASP classic in IIS7.5
还应该指出,虽然这篇文章是在讨论 IIS 7.5,但在 IIS 7 中的过程完全相同.
处理程序映射位于 Internet 信息管理器的 IIS 部分下.
Handler Mappings are found under the IIS section in the Internet Information Manager.
使用以下设置添加脚本映射(取自链接答案):
Add a script map using the following setting (taken from the linked answer):
请求路径: *.asp
可执行文件: C:Windowssystem32inetsrvasp.dll
姓名:随便你.我将我的经典 ASP 命名为
Request Path: *.asp
Executable: C:Windowssystem32inetsrvasp.dll
Name: whatever you want. I named my Classic ASP
上面的可执行文件是 64 位 用于您的 asp 脚本的 ASP 处理程序.如果您希望您的 ASP 脚本在 32 位环境中处理,您需要使用以下位置的可执行文件:C:WindowsSysWOW64inetsrvasp.dll
.
The executable above is 64 BIT ASP handler for your asp script. If you want your ASP script to be handled in 32 bit environment, you need to use executable from this location: C:WindowsSysWOW64inetsrvasp.dll
.
这篇关于ASP Classic 设置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!