Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Remoting server OCR initialization failing
Started by jerrydykstra at 03-20-2008 10:42. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  03-20-2008, 10:42
jerrydykstra is not online. Last active: 6/6/2008 4:49:21 PM jerrydykstra

Top 500 Posts
Joined on 01-09-2008
Posts 8
Remoting server OCR initialization failing
Reply Quote
I am working on an application that sends an image over .net remoting to save the image and OCR it.  I have it working fine in my prototype, but when I ported the code to our production remoting service code, I keep getting the "OCR engine initialization error, or there is no appropriate license" exception.  I have looked through the previous posts on this subject and followed the suggestions in them.  I am single threading through the OCR process, as I realize that it is not thread safe.  I have checked the production remoting service (which I am still running locally) project against the prototype project and I can't find any differences.  I have a valid OCR license.  Both virtual directories are set up with identical options.  I have tried setting the EnginePath but that doesn't seem to make a difference.  I downloaded the OCR web sample and it works fine after I set my OCR license key.  Is there any way to track down more specifically why the initialization is failing?  At this point I'm not sure if I have a licensing problem or a setup problem.
   Report 
  03-23-2008, 12:17
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 403
Re: Remoting server OCR initialization failing
Reply Quote

When you say you successfully tested an OCR web sample, does this happen on the same PC where your other project fails?

If both projects are running on the same PC, OCR works in one of them but not the other, and you specify the EnginePath to point to the exact same folder in both programs, this most likely indicates the project that fails does not have sufficient access to see the OCR engine files. Is this the case?


Adam Boulad
LEADTOOLS Technical Support

   Report 
  03-27-2008, 14:31
jerrydykstra is not online. Last active: 6/6/2008 4:49:21 PM jerrydykstra

Top 500 Posts
Joined on 01-09-2008
Posts 8
Re: Remoting server OCR initialization failing
Reply Quote

The OCR web sample and both projects are all running on the same PC.  In the project that works I am not setting the EnginePath at all.  In the one that doesn't work, I have tried not setting the EnginePath and I have tried setting it.  Neither option seems to work. Both projects are running under IIS and are configured for the same access.  I created a virtual directory to host the OCR web sample, and that worked as well. 

Jerry Dykstra


   Report 
  03-30-2008, 10:27
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 403
Re: Remoting server OCR initialization failing
Reply Quote

Jerry,

I'm not sure that I understand the problem in the last post. Does creating a virtual directory solve the problem in the server with the IIS service?

If you want me to try and check the problem here, is it possible to create a small project that only attempts to initialize the OCR engine similar to yours, and send me this small project along with detailed instructions on how to set it up like your own project?
Adam Boulad
LEADTOOLS Technical Support

   Report 
  04-03-2008, 15:46
jerrydykstra is not online. Last active: 6/6/2008 4:49:21 PM jerrydykstra

Top 500 Posts
Joined on 01-09-2008
Posts 8
Re: Remoting server OCR initialization failing
Reply Quote

I was trying to say that the sample works with the virtual directory.  I created a small project that mimics what we are doing for production.  Lo and behold, the small project works.  I'm combing through the web configs trying to see what is different.   I did discover that once the error is thrown it continues to be thrown until you roll IIS.  (I am hosting the remoting services under IIS.)  I will repost once I discover the problem. 


   Report 
  05-27-2008, 15:12
jerrydykstra is not online. Last active: 6/6/2008 4:49:21 PM jerrydykstra

Top 500 Posts
Joined on 01-09-2008
Posts 8
Re: Remoting server OCR initialization failing
Reply Quote
After trying a lot of different things, I finally got this to work by adding the raster engine path to my Environment PATH variable.  I still cannot figure out why it works in my sample App but not my production App.  Both are running locally with identical web setups.  But at least it is working! 
   Report 
Post
LEAD Support Fo... » Developer » OCR » Re: Remoting server OCR initialization failing

Powered by Community Server, by Telligent Systems