Windows 8 Access Forbidden

I was doing some development last night on some demo apps and I ran into this lovely error message:

“An attempt was made to access a socket in a way forbidden by its access permissions”

I got this exception when I attempted to access a Web API service I wrote from my Surface while doing some Remote Debugging.  I kept getting errors indicating the connection could not be resolved.

I did some digging and came up with the exception above, and it seems the solution isn’t overly obvious.  You have to check the following box:


This only seems to apply when you are talking to a server internally.  But it might apply elsewhere.  Real annoying, hopefully this posts save some people some time.


2 thoughts on “Windows 8 Access Forbidden

  1. When editing your application in Visual Studio this is usually in the manifest.xml file. For Windows Phone that would be under Properties for Windows 8, I believe it is in the root of the application. From the subsequent menu there will be a tab called “Capabilities'


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s