views:

566

answers:

2

Im trying to access a web service from a remote computer. I managed to access the web service from the browser. But Im getting HTTP 403 when I try to call the web service from the application.

Any idea why?

A: 

The Web server thinks that the HTTP data stream sent by the client was correct, but access to the resource identified by the URL is forbidden for some reason.Check the firewall settings.This should help you :-)

GustlyWind
+4  A: 

A 403 response indicates that the host or software you're connecting with isn't allowed to access the web service. Reasons for this might be:

  • The remote host you are is being blocked by a firewall
  • You've reached the limit of calls to the web service and they are blocking any further connections
  • You are sending credentials for authentication but the account is banned/disabled
  • The user-agent or some other header in your request is causing the service to reject the connection. Perhaps a missing header?
Joe Mahoney
I have similar problem, the wired thing is.. when running from nunit application, the service is fine, when running from windows services, i get 403. !!
Eduardo Xavier