Forum Discussion

barkat_khan_a's avatar
barkat_khan_a
Ideator I
6 years ago

The remote server returned an error: (401) Unauthorized When Connecting from C# application

with ARAS 12,

I am Getting (401) while connecting through a c# application,

it works perfectly fine when login from browser for the same user, what is wrong,

does anybody have a idea?

Regards

Barkat Khan

3 Replies

  • Hi Barkat,

    Could you let us know how you're trying to authenticate? Are you using the IOM.dll to create a connection or are you communicating via REST requests?

    If you're using the IOM, could you check that you're using the correct 12.0 version of the IOM.dll?

    If you're using the REST API, could you confirm that you've followed the steps for requesting and using a token as laid out in this blog post?

    Chris

    Christopher Gillis

    Aras Labs Software Engineer

    • barkat_khan_a's avatar
      barkat_khan_a
      Ideator I

      Thanks Chris for quick reply,

      Yes now i tried using the latest IOM which is dependent on .net framework 4.7.2 which means i also have to change the project target framework and rebuild application.

      regards

      Barkat Khan.