G
Guest
I am getting the following SocketException error:
"An attempt was made to access a socket in a way forbidden by its access
permissions"
Here is the code:
HttpWebRequest loginFormRequest = (HttpWebRequest)
WebRequest.Create(Properties.Settings.Default.LoginUrl);
HttpWebResponse loginResponse = (HttpWebResponse)
loginFormRequest.GetResponse();
The login URL works from IE.
I even tried setting WebPermissions & Socket Permissions before calling
this code, but it had no visible effect:
"An attempt was made to access a socket in a way forbidden by its access
permissions"
Here is the code:
HttpWebRequest loginFormRequest = (HttpWebRequest)
WebRequest.Create(Properties.Settings.Default.LoginUrl);
HttpWebResponse loginResponse = (HttpWebResponse)
loginFormRequest.GetResponse();
The login URL works from IE.
I even tried setting WebPermissions & Socket Permissions before calling
this code, but it had no visible effect: