简体   繁体   English

.aspx页面的IIS限制错误,但.aspx不受限制

[英]IIS restriction error for .aspx page, but .aspx is not restricted

I have recently tried to install TargetProcess http://www.targetprocess.com/ on my windows machine, which involves installing IIS and an instance of SQLEXPRESS. 我最近尝试在我的Windows机器上安装TargetProcess http://www.targetprocess.com/ ,其中涉及安装IIS和SQLEXPRESS的实例。

I have no previous with IIS so most to the concepts where new to me. 我以前没有IIS,所以对于我来说最新的概念。 After much head scratching and tinkering I managed to get TargetProcess to install. 经过多次努力,我设法让TargetProcess安装完毕。 However when I try to run it in a browser I get teh following error 但是,当我尝试在浏览器中运行它时,我得到以下错误

The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server. 由于Web服务器上的ISAPI和CGI限制列表设置,无法提供您请求的页面。

The page I am trying to run is .aspx and I have run a page.aspx to verify that .aspx are not being restricted as suggested by the error message. 我试图运行的页面是.aspx,我运行了一个page.aspx来验证.aspx没有受到错误消息建议的限制。

Anyone got any ideas as to what else it could be? 任何人都有任何想法可能是什么?

Kevin, 凯文,

In the IIS management console, please open ISAPI and CGI Restrictions feature fro your hosting server. 在IIS管理控制台中,请为您的托管服务器打开ISAPI和CGI限制功能。 ASP.NET v2.0 and v4.0 restrictions are set separately. ASP.NET v2.0和v4.0限制是单独设置的。 TargetProcess application is using .NET v4.0 since 2.22.9 build, so please check, that MS .NET framework v4.0 is installed and ASP.NET v4.0 is allowed. TargetProcess应用程序自2.22.9版本开始使用.NET v4.0,因此请检查是否已安装MS .NET framework v4.0并允许使用ASP.NET v4.0。 Also on the Handler Mappings section for TP web site PageHandlerFactory-ISAPI-4.0 should be enabled. 另外在TP网站的Handler Mappings部分也应该启用PageHandlerFactory-ISAPI-4.0。

Please contact us via http://messenger.providesupport.com/messenger/targetprocess.html if you need any assistance. 如果您需要任何帮助,请通过http://messenger.providesupport.com/messenger/targetprocess.html与我们联系。

Regards, Alex - TargetPro 此致,Alex - TargetPro

To solve: 要解决:

1.- Go to IIS manager and clic on your server name (when tooltip says localhosts) 1.-转到IIS管理器并输入您的服务器名称(当工具提示显示localhosts时)

2.- double clic on ASAPI and CGI restriction 2.- ASAPI和CGI限制的双重陈词滥调

3.- right clic to change all items to ALLOWED 3.-右clic将所有项目更改为ALLOWED

The "ISAPI and CGI Restrictions" option was not there on my machine. 我的机器上没有“ISAPI和CGI限制”选项。 I had to go back into the "Turn windows features on and off", then the "Internet Information Services" / "World Wide Web Services" / "Application Development Features" and then ticked the "CGI" option. 我不得不回到“打开和关闭Windows功能”,然后是“Internet信息服务”/“万维网服务”/“应用程序开发功能”,然后勾选“CGI”选项。 Once I did this, the "ISAPI and CGI Restrictions" option appeared after I closed and re-opened IIS. 一旦我这样做,我关闭并重新打开IIS后出现“ISAPI和CGI限制”选项。 Just mentioning it here in case anyone else has the same problem. 如果其他人有同样的问题,请在这里提一下。

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

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