Click here to Skip to main content
15,936,349 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am adding a web reference to a windows service and calling the method from the web service in the windows service.

Here is the code which I used.
Dim certificatePath As String = ConfigurationSettings.AppSettings("BloombergCertificatePath")
Dim Password As String = ConfigurationSettings.AppSettings("BBPassword")

Dim clientCert As New X509Certificate2(certificatePath, Password)
Dim ps As PerSecurityWS = New PerSecurityWS()
          sbmtGetDataRes = ps.submitGetDataRequest(sbmtGetDataReq)

When i try to call the above method from the web service, I am getting the error "Unable to connect to the Remote Server"

Can you please help me out.
Updated 22-Aug-13 6:16am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900