Problem in executing OCR SDK sample C# code

  • Last Post 06 June 2012
shaileshl posted this 05 June 2012

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 :

Any help is appreciated.

  • Shailesh

  • Liked by
  • Vasily Panferov
Order By: Standard | Newest | Votes
Andrey Isaev posted this 05 June 2012

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.

Vasily Panferov posted this 06 June 2012

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

restClient.ApplicationId = "<your application id>";
restClient.Passowrd = "<your application password>";

shaileshl posted this 06 June 2012

I have reset the password. Thanks!

shaileshl posted this 06 June 2012

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

shaileshl posted this 06 June 2012

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!