You are viewing limited content. For full access, please sign in.

Question

Question

Deploying SDK dependencies

SDK
asked on August 11, 2014

 

Is it possible to deploy SDK dependencies with a web application without installing the SDK runtime on the web server?

 

The symptom of my problem is a BadFormatException on Laserfiche.I18n.dll, but none of the regular solutions posted here seem to be helping. My thought is that it's because I'm trying to deploy the components along with my application. If I deploy the application straight to the Laserfiche application server (which has everything installed) it works fine.

 

However, I need to deploy this application to a web server, and we like to keep the dependencies restricted to what can be deployed as part of each application.

0 0

Answer

SELECTED ANSWER
replied on August 11, 2014

You can bin deploy the dependencies, but it's not likely to work as expected if you also install Laserfiche software on the machine. Laserfiche installs files to the Global Assembly Cache or WinSxS. When an application requests any of these files, Windows will try to load them from the GAC or WinSxS first before it checks the application's folder.

 

It is possible that your BadImageFormatException is caused by a 32-bit app trying to load a 64-bit library from the GAC.

0 0
replied on August 13, 2014

Ok, that explains why I couldn't even get it to run locally. My workstation has Laserfiche bits already installed.

 

Can you provide the list of dependencies that I should include if I want to use RepositoryAccess and DocumentServices? 

0 0
replied on August 13, 2014

I don't have a list of all the files handy, but the merge modules needed are in the Deploying Laserfiche SDK Dependencies chapter in the SDK help.

 

You can unpack the merge modules to get the files.

0 0
replied on August 13, 2014

Great! Thanks Miruna.

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.