For a deeper look into our DataScope Select SOAP API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
16 3 1 6

C# DSS : An error occurred while sending the request

Hi,

I have downloaded the ".Net SDK Tutorial 1: Connection to the DSS server" from

https://developers.refinitiv.com/en/api-catalog/datascope-select/datascope-select-rest-api/tutorials#net-sdk-tutorial-1-connecting-to-the-dss-server

When I run restful_api_core_gui_starter.exe, the program interrupts at

string sessionToken = extractionsContext.SessionToken;

and MSVS 2013 shows an exception

I have a DSS account with it I can login to DSS https://hosted.datascope.reuters.com/DataScope/

without any problem.

Does anyone can give me a hint, why it happens ?

Thanks in advance.

Tru

dss-rest-apidatascope-selectdssc#
xapfr.png (20.1 KiB)
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
Accepted
38.1k 69 35 53

@THUANTRU.HANG

Have you used DSS .NET SDK version 11.3?

You can download it from here.

The code looks like:

ExtractionsContext extractionsContext =
                 new ExtractionsContext(dssUri, dssUserName, dssUserPassword);

WebProxy proxy = new WebProxy("http://proxy:port/", true);
proxy.Credentials = new NetworkCredential("proxyuser", "proxypassword");
extractionsContext.Options.Proxy = proxy;
extractionsContext.Options.UseProxy = true;

version.png (25.4 KiB)
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.

Hi Jirapongse,

thank for your hints.

After adding proxy credential it works fine.

Regards,

Tru

Upvotes
426 2 4 4

Hi, @THUANTRU.HANG

Please inspect the detail exception message and post it here. The message should contain the reason why the exception was invoked.

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
16 3 1 6

Hi Steven,

it seems a problem with the proxy authentication.

The InnerException message shows:

"The remote server returned an error: (407) Proxy Authentication Required."

But how can I fix it ?

I can't find any hint in the documentation.

Thanks for your help

Tru


xpvkm.jpeg (195.4 KiB)
99zqd.jpeg (135.5 KiB)
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