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.thomsonreuters.com/datascope-select-dss/datascope-select-rest-api/learning?content=5730&type=learning_material_item

When I run restful_api_core_gui_starter.exe, the program interrupts at

string sessionToken = extractionsContext.SessionToken;

and MSVS 2013 shows an exception

image

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

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @THUANTRU.HANG

    Have you used DSS .NET SDK version 11.3?

    image

    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;

Answers