System.Net.WebException: Unable to connect to the remote server
- by Anilkumar
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream()
at OmnexCRMFileDownloader.OmnCRMTemplateDataReader.GetProposalData(String lurl)
I'm getting the above error when I try to post to a .aspx page.I think it is not Posting to the page I specified.
HttpWebRequest.GetRequestStream() is not getting as expected. Pls help.