Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
Cannot Connect to Remote Server
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="leeo, post: 1597216"] This is driving me absolutely mad. We've been using this code to connect to a remote site: System.Net.ServicePointManager.CertificatePolicy = New cCertificatePolicy wr = CType(WebRequest.Create(goSettings.NHSDPBClaimsURL), HttpWebRequest) nc = New NetworkCredential(goSettings.NHSUserName, goSettings.NHSPassword) wr.Credentials = nc wr.ContentType = "text/xml" wr.Method = "POST" xw = New XmlTextWriter(wr.GetRequestStream(), Nothing) When the goSettings.NHSDPBClaimsURL in the webrequest statement is set to [URL]https://ebusiness.dpb.nhs.uk/claims.asp[/URL] it all works absolutely fine. However I'm being asked to send the same data to a different server at the location which is referred to as [URL]https://195.212.12.173/claims.asp[/URL]. However whenever we try this it simply errors when it tries to perform the GetRequestStream and says it can't connect to the remote server (even though we can use IE to access it easily. We've tried all the usual things like creating our certificate policy to get around any security certificates but nothing has worked. Please, if anyone has ANY suggestions can you let me know. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
Cannot Connect to Remote Server
Top