ASP.NET Development Server - 403 Forbidden

I am creating a new computer and I have set my project to work. This is a .NET Remoting 2.0 application that uses an ASP.NET development server to host the back end during development. I am getting the following error when making requests to the server:

"The remote server responded with an error: (403) Forbidden."

I have checked the passed credentials and everything seems to be correct. The call is local to my dev window and to terminate it. The code hasn't changed and all my colleagues are working fine. Any ideas?

+1


source to share


2 answers


OK. I found the answer ... best for one day. It turns out the 403 error is being thrown by one of our channel sink providers that filter the IP values. The channel receiver provider was written with some big assumptions.

First, it looks for the address of the calling machine and compares it to the ip whitelist. The author blindly put together the first entry in the list:



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

      

It turns out on my new machine, I have IPv6 enabled, so the first entry is the IPv6 entry. After referring to MSDN, I found that the Address property is now "deprecated" for obvious reasons.

+3


source


What is an 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.

      

+2


source







All Articles