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

Question

Question

Could not load file or assembly 'Laserfiche.I18n'

SDK
asked on September 9, 2014

 Greeting All,

I have created a WCF service to conduct a lookup in LaserFiche 9.1.  It returns a url for the parent folder to display all available documents in that particular folder.

 

I have published my webpage to IIS that connects to the WCF Service running in my development environment ie..Http://localhost:54877/ the service works perfectly. 

 

However when I publish the actual WCF Service to IIS 7, and attempt to verify the WCF Service using Http://Gandolf:8055/service1.svc I get the following error;

 

Server Error in '/' Application.

Could not load file or assembly 'Laserfiche.I18n' or one of its dependencies. An attempt was made to load a program with an incorrect format.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 Exception Details: System.BadImageFormatException: Could not load file or assembly 'Laserfiche.I18n' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error:


 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Laserfiche.I18n' could not be loaded.

 

I added the reference for the 64 bit version 9.1, and re-published with no luck.

 

Thanks for the Assistance, any ideas would be great.

 

Phil Joyce - One Source.

0 0

Answer

SELECTED ANSWER
replied on September 9, 2014

"BadImageFormatException" means that a 64-bit process tried to load a 32-bit dll or vice-versa.  Your publishing step might have pushed those out in the bin directory, when they should be installed like Michael describes.  In general you shouldn't include any Laserfiche assemblies in your bin directory, they should all be loaded from the GAC.

1 0
replied on August 29, 2016

Who is Michael and where is his comment?

Replies

replied on September 9, 2014

Did you run the SDK runtime installer? What's missing are ICU DLLs which need to be installed to the Windows SxS cache.

3 0
replied on September 15, 2014

Thanks Guys,

It was actually a combination of both issues. I actually had to roll back to the 8.3 SDK to get the 32 bit version of the 'Laserfiche.I18n'.  I only had the 9.1 64 bit dll available.

 

Thanks!!

 

Phil

1 0
replied on June 5, 2019

I have a web api in ASP.Net that has the reference only to the libraries of Laserfiche.DocumentServices and Laserfiche.RepositoryAccess but when it is published in the IIS webserver, I have the following error,

 

The server has LF SDK 10.2, LF WebClient installed. This is very strange because it refers to the Laserfiche.I18n.dll library if I am not using it.

I have everything installed in 64 bit.

Thanks for the Assistance, any ideas would be great.

replied on July 9, 2019

I have the following error when using sdk 10 only when I publish it in IIS, I have even created a blank webapi and only referencing the dll and I have the same error. thank you for your support.

 

 

Captura.PNG
Captura.PNG (111.06 KB)
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.