Welcome to LEAD Support Forum Login | Register | Faq  

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

Error when executing from share
Started by aallasudheer at 06-05-2008 12:11. Topic has 12 replies.

Print Search « Previous Thread Next Thread »
  06-05-2008, 12:11
aallasudheer is not online. Last active: 10/1/2008 5:23:44 PM aallasudheer

Top 50 Posts
Joined on 10-09-2007
Posts 35
Error when executing from share
Reply Quote

Hello Support Team,

I posted this to Deployment forum couple of days back but I didn't get any reply. It is really urgent please let us know what do we need to do to get this working.

When I try to access my app from share path (\\DevlMachine\Share\Release) from development machine I am getting following error. But it is working if I Execute it from C:\Share\Release from the same machine, I am getting this error at rasterEngine.Startup();. Please let me know if I am missing something here. We are using .net 15 with OCR. I tried setting RasterDocumentEngine.EnginePath but still I am geting the same error. I have copied all the files listed in "Files to be Included with Your Application" to the application path.

Faulting application appname.exe, version 1.0.0.0, faulting module msvcr80.dll, version 8.0.50727.1433, fault address 0x00024ac6.

Thanks,
Sudheer


   Report 
  06-05-2008, 17:34
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Error when executing from share
Reply Quote
What is the file version of Leadtools.dll that you are using?

What object type is "rasterEngine"?

Does this problem only occur when using OCR or does a simple load and display application fail too?

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-05-2008, 18:05
aallasudheer is not online. Last active: 10/1/2008 5:23:44 PM aallasudheer

Top 50 Posts
Joined on 10-09-2007
Posts 35
Re: Error when executing from share
Reply Quote

Leadtools.dll version is 15.0.0.29

Its RasterDocumentEngine.

This problem is only with OCR, I am getting same error when I try to execute CSOcrDemo from network path, CSOcrDemo also throwing the error at same line of code (RasterDocumentEngine.Startup();


   Report 
  06-09-2008, 12:03
aallasudheer is not online. Last active: 10/1/2008 5:23:44 PM aallasudheer

Top 50 Posts
Joined on 10-09-2007
Posts 35
Re: Error when executing from share
Reply Quote

Hello Support Team,

Any updates on this?


   Report 
  06-09-2008, 13:15
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Error when executing from share
Reply Quote
I am still investigating this issue.  I should be able to give you more details later this afternoon or tomorrow morning.

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-10-2008, 12:33
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Error when executing from share
Reply Quote
I was able to get this working for me.  It took a bit of tweaking of security policies, but eventually RasterDocumentEngine.Startup worked perfectly fine from the network.

My code was very simple, all the form had was a button which called RasterSupport.UnlockSupport, created an instance of the RasterDocumentEngine class, then called Startup.

Here's the two security changes I had to make with the .NET Framework 2.0 configuration to get this working:

1. Make sure my local intranet was fully trusted.
- Right click on Runtime Security policy and select Adjust Security
- Click Next
- Select the Local Intranet Zone and give it full trust and click Next until you can finish the dialog

2. Make sure all Leadtools assemblies are trusted
- Right clickon Runtime Security Policy and select Trust Assembly
- Click Next
- Browse to and find Leadtools.dll in your network location and click next
- Select All assemblies from same publisher and click Next until you finish the dialog.

[3.] Another option rather than trusting the assembly is to give the entire directory full trust.  See this MSDN forum post for more details:
http://forums.msdn.microsoft.com/en-US/clr/thread/e4a65263-24f9-45a6-a2ad-6c26aae36075

I don't think the file version should matter since it appears to be a security problem, but if this still doesn't work, you should update to the latest version to make sure and to put us both on the same page.  Please send an email to support@leadtools.com in order to get the download instructions for the latest patch.  For verification purposes, I need you to include the following information:
 
1. The company you work for
2. The LEADTOOLS serial number(s) you own (if you are evaluating, just say so and we'll send you the eval patch)
3. The name(s) of the developer(s) using the serial number
4. A link to this forum post

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-10-2008, 17:26
aallasudheer is not online. Last active: 10/1/2008 5:23:44 PM aallasudheer

Top 50 Posts
Joined on 10-09-2007
Posts 35
Re: Error when executing from share
Reply Quote
Thanks Greg, I am still having the same problem. Just sent an e-mail to support for latest version. Can you please give me the list of DLLs you copied to the network path?
   Report 
  06-11-2008, 8:45
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Error when executing from share

Attachment: NET - v15 - ocr network test.zip
Reply Quote
All I deployed was Leadtools.dll and Leadtools.Document.dll and the EXE.  Attached is the sample project.

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-11-2008, 18:29
aallasudheer is not online. Last active: 10/1/2008 5:23:44 PM aallasudheer

Top 50 Posts
Joined on 10-09-2007
Posts 35
Re: Error when executing from share
Reply Quote

Worked finally with the upgrade, Thanks a lot for your help.

 

 


   Report 
  06-11-2008, 19:22
aallasudheer is not online. Last active: 10/1/2008 5:23:44 PM aallasudheer

Top 50 Posts
Joined on 10-09-2007
Posts 35
Re: Error when executing from share
Reply Quote

Problem Again, When I try to set the RasterDocumentEngine path to networkPath //DevlMachine/Share/OCR I am getting the same error. Can you please let me know if I am doing some thing defferent here.

RasterDocumentEngine.EnginePath = @"\\DevlMachine\Share\OCR";

 

 

 


   Report 
  06-12-2008, 9:52
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Error when executing from share
Reply Quote
I'm getting a crash when the engine path is pointing to the network as well.  I'm still investigating this, and it may need to go to engineering. 

There is a workaround though.  If you map the network drive to a letter, it should work:

RasterDocumentEngine.EnginePath = @"P:\Greg_R\ocr network test\ocr\";

vs.

RasterDocumentEngine.EnginePath = @"\\network drive\Greg_R\ocr network test\ocr\";
Greg Ross
LEADTOOLS Technical Support
   Report 
  06-12-2008, 10:35
GregR is not online. Last active: 11/26/2008 3:40:25 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,717
Re: Error when executing from share
Reply Quote
I have reproduced this problem and have reported it with the incident number 7056IDT.  This incident will be reviewed and prioritized by our engineering department.  I will contact you when I get more information from our developers.

For now, you will need to map the network drive to a letter or have the OCR engine on the local machine.
 
If you have any more questions, please let me know.

Greg Ross
LEADTOOLS Technical Support
   Report 
  06-12-2008, 12:34
aallasudheer is not online. Last active: 10/1/2008 5:23:44 PM aallasudheer

Top 50 Posts
Joined on 10-09-2007
Posts 35
Re: Error when executing from share
Reply Quote
Thanks Greg, Mapping network drive worked.
   Report 
Post
LEAD Support Fo... » Developer » OCR » Error when executing from share

Powered by Community Server, by Telligent Systems