2008-12-23 83 views
1

我正在设置一台新电脑,并安装了我的项目。它是一个.NET Remoting 2.0应用程序,它在开发过程中使用ASP.NET开发服务器托管服务器端。我得到当我提出请求到服务器出现以下错误:ASP.NET开发服务器 - 403禁止

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

我已经检查了正在传递的凭据,一切似乎是正确的。这个电话在我的开发箱中都是本地的,并且是最好的。代码没有改变,我的所有同事都工作得很好。有任何想法吗?

回答

3

好的。我已经找到了答案......虽然一天拍摄的部分内容很棒。原来我们的一个渠道接收器提供商针对IP值进行筛选时发现了403错误。渠道汇的提供者是写了一些大的假设。

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

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

原来我的新机器上,我启用IPv6,所以第一个条目实际上是IPv6条目。引用MSDN后,我发现Address属性现在是“Obsolete”,原因很明显。

2

什么是错误子代码?

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. 
+0

这是关于ASP.NET开发服务器,它不像IIS那样喜欢子代码。 – doekman 2010-06-03 13:17:42