I'm setting up a new PC and I installed my project to work with. It is a .NET Remoting 2.0 application that uses the ASP.NET development server to host the server side while developing. I'm getting the following error when I make requests to the server:
我正在设置一台新PC并安装了我的项目。它是一个.NET Remoting 2.0应用程序,它使用ASP.NET开发服务器在开发时托管服务器端。当我向服务器发出请求时,我收到以下错误:
"The remote server returned an error: (403) Forbidden. "
“远程服务器返回错误:(403)禁止。”
I've checked the credentials being passed in and everything seems to be correct. The call is all local to my dev box and to top it off. The code hasnt' changed and all of my colleagues are working fine. Any ideas?
我检查了传入的凭据,一切似乎都是正确的。这个电话都是我的开发箱的本地电话,并且最重要。代码没有改变,我的所有同事都工作正常。有任何想法吗?
2 个解决方案
#1
OK. I've found the answer ... better part of a day shot though. Turns out the 403 error is thrown by one of our channel sink providers that filters on IP values. The channel sink provider was written with some big assumptions.
好。我找到了答案......虽然拍摄了一天中更好的部分。原来我们的一个渠道接收提供商抛出了403错误,该错误过滤了IP值。渠道接收器提供商编写了一些重要的假设。
First off, it is looking for the address of the calling machine and comparing it to an ip whitelist. The author blindly gathered the first first entry in the list:
首先,它正在寻找呼叫机器的地址并将其与ip白名单进行比较。作者盲目地收集了列表中的第一个第一个条目:
Dns.GetHostEntry(machineName).AddressList[0].Address
Turns out on my new machine, I have IPv6 enabled, so the first entry is actually the IPv6 entry. After referencing the MSDN, I discovered that the Address property is now "Obsolete", for obvious reasons.
在我的新机器上,我启用了IPv6,因此第一个条目实际上是IPv6条目。在引用MSDN之后,我发现Address属性现在是“过时的”,原因很明显。
#2
What is the error subcode?
什么是错误子码?
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.
#1
OK. I've found the answer ... better part of a day shot though. Turns out the 403 error is thrown by one of our channel sink providers that filters on IP values. The channel sink provider was written with some big assumptions.
好。我找到了答案......虽然拍摄了一天中更好的部分。原来我们的一个渠道接收提供商抛出了403错误,该错误过滤了IP值。渠道接收器提供商编写了一些重要的假设。
First off, it is looking for the address of the calling machine and comparing it to an ip whitelist. The author blindly gathered the first first entry in the list:
首先,它正在寻找呼叫机器的地址并将其与ip白名单进行比较。作者盲目地收集了列表中的第一个第一个条目:
Dns.GetHostEntry(machineName).AddressList[0].Address
Turns out on my new machine, I have IPv6 enabled, so the first entry is actually the IPv6 entry. After referencing the MSDN, I discovered that the Address property is now "Obsolete", for obvious reasons.
在我的新机器上,我启用了IPv6,因此第一个条目实际上是IPv6条目。在引用MSDN之后,我发现Address属性现在是“过时的”,原因很明显。
#2
What is the error subcode?
什么是错误子码?
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.