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

asked 05 Jun '12, 18:51

shaileshl's gravatar image

shaileshl
2115

edited 09 Jun '12, 11:14

Vasily%20Panferov's gravatar image

Vasily Panferov ♦♦
5422516


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.

link

answered 05 Jun '12, 20:02

Andrey%20Isaev's gravatar image

Andrey Isaev ♦♦
2835

I have reset the password. Thanks!

(06 Jun '12, 18:58) shaileshl

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

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

answered 06 Jun '12, 09:35

Vasily%20Panferov's gravatar image

Vasily Panferov ♦♦
5422516

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

(06 Jun '12, 18:58) shaileshl

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!

(06 Jun '12, 19:23) shaileshl
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×59
×36
×28
×11
×4

Asked: 05 Jun '12, 18:51

Seen: 3,631 times

Last updated: 09 Jun '12, 11:14

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal