コミュニティ

Problem in executing OCR SDK sample C# code

We have created an OCR Cloud SDK account, created an applicationID and downloaded the sample code. However we are facing some issue in executing the sample code.

When we build and run the ‘ConsoleTest’ application by providing ApplicationID and Password which we got after registration. However, it throws an exception on line 532 in file RestServiceClient.cs (Abbyy.Cloud.OcrSdk) exceptions as follows

“The remote server returned an error: (401) Unauthorized.”

ApplicationID : ** Passwd : ** ServerAddress : http://cloud.ocrsdk.com

Any help is appreciated.

  • Shailesh

この記事は役に立ちましたか?

1人中1人がこの記事が役に立ったと言っています

コメント

5件のコメント

  • Avatar
    Andrey Isaev

    Please log in into private section of the web site and reset password for your application. New password will be sent to your e-mail address.

    Please, never publish your login and password on public forums.

    0
  • Avatar
    SDK Support Team

    Please provide your application Id and password in ConsoleTest\Test.cs, class Test() constructor:

    restClient.ApplicationId = "<your application id>";
    restClient.Passowrd = "<your application password>";
    
    0
  • Avatar
    Permanently deleted user

    I have reset the password. Thanks!

    0
  • Avatar
    Permanently deleted user

    Please let me know show should I send applicationID and the password to you?

    0
  • Avatar
    Permanently deleted user

    I could resolve the problem....

    It was an error from my developer. when she cut-pasted the application id from the email an extra space gt introduced. Hence the authorization was failing.

    When I looked into it again today, I noticed the extra space. Removing that extra space worked.

    Thanks everyone!

    0

サインインしてコメントを残してください。