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 192.168.1.18:80”
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.
Is this box in Windows 8, Visual Studio, Explorer, RegEdit? Which Menu? Seems good, does help me at all if I can't find it!
LikeLike
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'
LikeLike