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

Joined on 05-31-2006
In House
Posts 1,717
|
Re: Error when executing from share
|
 
 
|
|
|
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-09-2008, 13:15
|
GregR

Joined on 05-31-2006
In House
Posts 1,717
|
Re: Error when executing from share
|
 
 
|
|
|
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

Joined on 05-31-2006
In House
Posts 1,717
|
Re: Error when executing from share
|
 
 
|
|
|
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
Joined on 10-09-2007
Posts 35
|
Re: Error when executing from share
|
 
 
|
|
|
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

Joined on 05-31-2006
In House
Posts 1,717
|
|
|
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-12-2008, 9:52
|
GregR

Joined on 05-31-2006
In House
Posts 1,717
|
Re: Error when executing from share
|
 
 
|
|
|
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, 12:34
|
aallasudheer
Joined on 10-09-2007
Posts 35
|
Re: Error when executing from share
|
 
 
|
|
|
Thanks Greg, Mapping network drive worked.
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Developer » OCR » Error when executing from share
|
|
Copyright LEAD Technologies, Inc. 2008
