question

Upvotes
Accepted
1 0 0 1

RDP .NET Desktop session unable to send proxy ping request to localhost:9000

I'm using the Refinitiv.Data library for .NET and am trying to open a Desktop session to connect to an instance of Workspace.

Refinitiv.Data.Log.Level = NLog.LogLevel.Debug
session = DesktopSession.Definition().AppKey(appKey).GetSession(); 
session.Open();

When running the above code when setting up the project as a Console Application, I am able to connect, but when setting this up as a class library and calling the code from a Windows Application, the session.Open call is hanging on the ping request and blocks the rest of the application. Can I find any log files for Workspace to see why the request might be hanging?

The RDP logs when running as a Console Application:

2021-05-26 17:32:16.8271|Info|Refinitiv.Data.Core.DesktopSessionCore|10|Using default port: 9000
2021-05-26 17:32:16.8591|Debug|Refinitiv.Data.Core.DesktopSessionCore|10|Sending desktop proxy ping request (GET): "http://localhost:9000/ping?all"
2021-05-26 17:32:18.0684|Debug|Refinitiv.Data.Core.DesktopSessionCore|14|Desktop Session proxy ping succeeded: {
    IsSuccess: True
    HttpStatus: {
  "HTTPStatusCode": 200,
  "HTTPReason": "OK"
}...

The RDP logs when built as a class library:

2021-05-26 18:14:32.7178|Info|Refinitiv.Data.Core.DesktopSessionCore|1|Using default port: 9000
2021-05-26 18:14:32.7548|Debug|Refinitiv.Data.Core.DesktopSessionCore|1|Sending desktop proxy ping request (GET): "http://localhost:9000/ping?all"


workspacerefinitiv-data-platform.netrefinitiv-data-platform-libraries
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
9.7k 49 38 60

Hi @RaymondTieu1,

Being a Windows application, you typically need to await your calls, i.e

await session.OpenAsync();

If this doesn't help, is it possible you can put together the code segment that demonstrates the issue?

Also, did you try building a Windows Application that uses the Refinitiv Data Library for .Net as opposed to building a Windows Application that uses your own library that contains code from the Refinitiv Data Library for .Net?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
1 0 0 1

Thanks Nick.

Using the OpenAsync solved my issue.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea