简体   繁体   English

经典ASP在Windows Vista IIS7上不起作用

[英]Classic ASP not working on Windows Vista IIS7

I have just moved from Windows XP Pro to Windows Vista Ultimate. 我刚刚从Windows XP Pro迁移到Windows Vista Ultimate。 I installed IIS and all sub categories (including Classic ASP). 我安装了IIS和所有子类别(包括经典ASP)。

I have a few websites in my wwwroot folder that are Classic ASP sites. 我的wwwroot文件夹中有一些网站是Classic ASP网站。 When I try to view them through localhost, I keep getting an error message: 当我尝试通过本地主机查看它们时,我不断收到错误消息:

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. 如果您是系统管理员,请单击此处以查找有关此错误的更多信息。

This error links off to this page , which is about running Classic ASP websites on IIS7. 此错误链接到此页面该页面是关于在IIS7上运行Classic ASP网站。

I have followed the post and enabled ASP in IIS. 我已经关注了这篇文章,并在IIS中启用了ASP。 However, I cannot get the sites to work. 但是,我无法使这些网站正常工作。

Can anyone please shed some light as to why this is happening? 谁能说明为什么会这样吗? Any help would be greatly appreciated. 任何帮助将不胜感激。

It works for me once I added ASP under Programs and Features without any issues.. One thing I noticed is a checkbox to "enable server side includes" so if your ASP app has that, you may want to check that off. 一旦我在“程序和功能”下添加ASP而没有任何问题,它便对我有用。我注意到的一件事是“启用服务器端包含”复选框,因此,如果您的ASP应用程序具有此功能,则可能需要将其选中。

You also may want to check security settings but I didn't have any issues with that either. 您可能还需要检查安全设置,但是我也没有任何问题。

I wrote a very complex ASP page with the following source code for a test 我编写了一个非常复杂的ASP页面,其中包含以下测试源代码

<%= Response.Write("Hi Stack Overflow") %>

In PowerShell, that's: 在PowerShell中,这是:

ipmo servermanager
add-windowsfeature web-asp

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

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