ASP经典设置问题 [英] ASP Classic setup issues

查看:160
本文介绍了ASP经典设置问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个完整的新手到经典ASP和一直在试图将其设置,但我一直运行到错误消息。我在Windows 7中使用IIS7和已确保安装了IIS等,我已经创建了位于应用程序C:\\的Inetpub \\ wwwroot文件,并在该目录中我有一个名为 page.asp 。但是,每当我去我的浏览器是Chrome并输入本地主机它让我看到蓝色的IIS网页,但是当我键入本地主机/页。 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:\inetpub\wwwroot 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:

An error occurred on the server when processing the URL. Please contact the system administrator

我想不出什么我做错了。我已经确定了ASP和IIS都启用,并在页面中code是一个简单的

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.

这答案有你需要设置它的所有信息 - 答案 - 如何启用ASP经典的IIS7.5

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:\\ WINDOWS \\ SYSTEM32 \\ INETSRV \\ ASP.DLL结果
  名称:任何你想要的。我叫我的经典ASP

Request Path: *.asp
Executable: C:\Windows\system32\inetsrv\asp.dll
Name: whatever you want. I named my Classic ASP

以上的可执行文件是为你的ASP脚本的 64位的ASP处理程序。如果你希望你的ASP脚本在32位环境中进行处理,则需要使用可执行文件从该位置: C:\\ WINDOWS \\ Syswow64资料\\ INETSRV \\ ASP.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:\Windows\SysWOW64\inetsrv\asp.dll.

这篇关于ASP经典设置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆