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

Question

Question

Deploy Web Service developed using SDK

SDK
asked on May 22, 2014

I have created web service that uses Laserfiche.RepositoryAccess 9.1 dll to search and return result in JSON format from Repository.

 

From Visual Studio 2010 when I am running application it is returning the result. Now I want to deploy this web service to IIS. I searched about it and I found that I need to create Web Setup Project in Visual Studio and need to add Merge Modules. I have created Web Setup Project with targeted platform x64 and x86 because it is not giving me an option for Any CPU.  My Web Service project's target platform is Any CPU.

 

Setup is detecting dependencies automatically where Laserfiche.HttpClient.dll is from GAC_64 and Laserfiche.I18n.dll is from x86 folder.

I have added Merge Modules as suggested in Laserfiche SDK 9.1 help document.

 

x86 Web setup project gives me an error "'Laserfiche.HttpClient.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'"

 

So I have created Web Setup Project with x64 platform. Setup is getting created successfully as well as application is getting installed successfully. Now I am executing my web service from IIS and it gives me DLL dependenci error: "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."

 

If possible then provide me step by step guide to deploy application that is created using SDK.

 

lfgis.jpg
lfgis1.jpg
lfgis.jpg (222.22 KB)
lfgis1.jpg (523.09 KB)
0 0

Answer

SELECTED ANSWER
replied on June 5, 2014

The files Sheldon references are located in the GAC. They are actually included in any installation package that installs Repository Access, as they are RA dependencies - it's just that there was an unrelated hotfix recently and the Web Administration Console was the first RA product to have an update since then.

 

The SDK runtime files DEFINITELY include this DLL, or else RA coding would NEVER work. However, these files depend on the VC11 runtime which is not included in the SDK runtime installation - make sure that is installed. The issue generally is one of arch - while Repository Access itself is arch independent, these dependency files are not. If you are adding merge modules manually, please ensure you are including both the x86 and x64 msm's of RA. You'll also need to include both archs of dependency msm's like ICU (ICUSxS only is the arch of the installation though). These files also depend, as noted above, on the VC11 runtime so make sure both archs of that are present too if this might be run in an x86 process.

2 0
replied on June 9, 2014

Thanks Justin,

 

I have downloaded and installed new x64 version of VC11 on my server. My problem is resolved and I can able to execute my web service.

0 0

Replies

replied on June 6, 2014

Hi Justin,

 

Installing VC11 on the web server has resolved my issue. Thanks for the help!

 

Regards,

Sheldon

1 0
replied on June 5, 2014

Hi Ashish,

 

Have you had any progress on this error? I am having the same problem and am busy investigating a solution.

 

Thanks

Sheldon

replied on June 5, 2014

Hi Ashish,

 

Have you had any progress on this error? I am having the same problem and am busy investigating a solution.

 

Thanks

Sheldon

0 0
replied on June 5, 2014

Sorry Sheldon,

 

but still no progress on this. Still I am trying but no response.

0 0
replied on June 5, 2014

Hi Ashish,

 

Thanks for the reply.

 

I found this KB article that was recently updated: https://support.laserfiche.com/KB/1013480

 

It contains an update that seems to include the missing file that we are both looking for i.e. Laserfiche.I18n.dll

 

This file seems to be part of the Web Admin Console. However, on my installation of Web Admin Console, this file is nowhere to be found. I'm going to assume that installing this Service Pack will deploy this file onto the system. I will test it out and give feedback. Perhaps you could install Web Admin Console on your target machine and then run this update and see if that fixes your issue.

 

That being said, if it works, it seems clear that the SDK runtime files do not include this DLL.

 

Regards,

Sheldon

0 0
replied on June 5, 2014

Hi Justin,

 

Thank you very much for the feedback. I was well off the mark.

 

I will take your recommendations and see if it works on my end.

 

Thanks

Sheldon

0 0
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.

 

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

Sign in to reply to this post.