简体   繁体   English

在IIS 7.5上运行ASP Classic

[英]Running ASP Classic on IIS 7.5

I need to do some work on an old ASP Classic site, so I'm trying to host it on my IIS, but when I try load a page I get: 我需要在一个旧的ASP Classic网站上做一些工作,所以我试图在我的IIS上托管它,但当我尝试加载一个页面时,我得到:

An error occurred on the server when processing the URL. 处理URL时服务器上发生错误。 Please contact the system administrator. 请联系系统管理员。

If you are the system administrator please click here to find out more about this error. 如果您是系统管理员,请单击此处以了解有关此错误的更多信息。

When I follow the link, it takes me to a Microsoft site and talks about running ASP Classic on IIS 7, but none of the pages help and nothing I found on Google will get it to work. 当我按照链接时,它将我带到一个Microsoft站点,并讨论在IIS 7上运行ASP Classic,但没有一个页面有帮助,我在Google上找到的任何内容都无法使用它。 I have all the elements under turn Windows features on and off - IIS - WWW services - app dev features. 我打开和关闭Windows功能的所有元素 - IIS - WWW服务 - app dev功能。

This was bugging me earlier today and it turned out I had an error in my script. 今天早些时候这让我感到困扰,事实证明我的剧本中有错误。

This assumes you have installed the ASP/ISAPI extensions via the Control Panel's "Add/Remove Windows Features." 这假设您已通过控制面板的“添加/删除Windows功能”安装了ASP / ISAPI扩展。

By default, errors will not be sent to the browser. 默认情况下,错误不会发送到浏览器。 To enable sending errors to the browser, go to the site in your IIS manager. 要启用向浏览器发送错误,请转到IIS管理器中的站点。 Double click the ASP icon and expand "Debugging Properties." 双击ASP图标,展开“调试属性”。 Set "Send Errors to Browser" to True . 将“将错误发送到浏览器”设置为True

启用向浏览器发送错误

我遇到了同样的问题,事实证明你需要将应用程序池设置为经典的.net才能工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM