I have just moved from Windows XP Pro to Windows Vista Ultimate. I installed IIS and all sub categories (including Classic ASP).
我刚刚从Windows XP Pro迁移到Windows Vista Ultimate。我安装了IIS和所有子类(包括Classic ASP)。
I have a few websites in my wwwroot
folder that are Classic ASP sites. When I try to view them through localhost, I keep getting an error message:
我的wwwroot文件夹中有一些网站是经典ASP网站。当我尝试通过localhost查看它们时,我不断收到错误消息:
An error occurred on the server when processing the URL. Please contact the system administrator.
处理URL时服务器上发生错误。请联系系统管理员。
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. However, I cannot get the sites to work.
我已经关注帖子并在IIS中启用了ASP。但是,我无法让这些网站发挥作用。
Can anyone please shed some light as to why this is happening? Any help would be greatly appreciated.
任何人都可以了解为什么会发生这种情况?任何帮助将不胜感激。
2 个解决方案
#1
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") %>
#2
In PowerShell, that's:
在PowerShell中,这是:
ipmo servermanager
add-windowsfeature web-asp
#1
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") %>
#2
In PowerShell, that's:
在PowerShell中,这是:
ipmo servermanager
add-windowsfeature web-asp