繁体   English   中英

ASP.NET开发服务器-禁止使用403

[英]ASP.NET Development Server - 403 Forbidden

我正在安装一台新PC,并安装了可以使用的项目。 它是一个.NET Remoting 2.0应用程序,在开发过程中使用ASP.NET开发服务器托管服务器端。 向服务器发出请求时出现以下错误:

“远程服务器返回错误:(403)禁止。”

我检查了传递的凭据,似乎一切正确。 该呼叫全部位于我的开发人员本地,并且最重要的是。 代码尚未更改,我的所有同事都工作正常。 有任何想法吗?

好。 我已经找到了答案……虽然一天中拍摄的时间更好。 原来,我们的其中一个根据IP值进行过滤的通道接收器提供程序引发了403错误。 通道接收器提供程序的编写有一些大的假设。

首先,它正在查找呼叫机器的地址并将其与ip白名单进行比较。 作者盲目地收集了列表中的第一个第一条目:

Dns.GetHostEntry(machineName).AddressList[0].Address

事实证明,在新机器上,我启用了IPv6,因此第一个条目实际上是IPv6条目。 引用MSDN之后,出于明显的原因,我发现Address属性现在已“过时”。

错误子代码是什么?

403 - Forbidden. IIS defines several different 403 errors that indicate a more specific cause of the error:
•   403.1 - Execute access forbidden.
•   403.2 - Read access forbidden.
•   403.3 - Write access forbidden.
•   403.4 - SSL required.
•   403.5 - SSL 128 required.
•   403.6 - IP address rejected.
•   403.7 - Client certificate required.
•   403.8 - Site access denied.
•   403.9 - Too many users.
•   403.10 - Invalid configuration.
•   403.11 - Password change.
•   403.12 - Mapper denied access.
•   403.13 - Client certificate revoked.
•   403.14 - Directory listing denied.
•   403.15 - Client Access Licenses exceeded.
•   403.16 - Client certificate is untrusted or invalid.
•   403.17 - Client certificate has expired or is not yet valid.
•   403.18 - Cannot execute requested URL in the current application pool. This error code is specific to IIS 6.0.
•   403.19 - Cannot execute CGIs for the client in this application pool. This error code is specific to IIS 6.0.
•   403.20 - Passport logon failed. This error code is specific to IIS 6.0.

暂无
暂无

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

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