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

Question

Question

WebLink error changing .Net Framework

asked on August 27, 2015

We have been using WebLink 8.2.2. I copied the Web Files folder to another location and updated the virtual directory in IIS. I have been using .Net Framework 2.0 on VS 2008, but recently rebuilt the solution with .Net Framework 4.0 on VS 2012.

I changed the application pool to .Net Framework 4.0.30319 and Integrated managed pipeline mode.
I have Configuration Manager on Any CPU.  The WebLink project has Target framework 4.5.

I get this error on the Login screen -
Retrieving the COM class factory for component with CLSID {54713AC5-C398-44E3-921F-6A0B5F2D92A1} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

If I remove the reference to the x86 Interop.LFSO82Lib.dll and instead reference the 64 bit dll, I get this compile error -
An attempt was made to load an assembly with an incorrect format: C:\Projects\LaserficheMain\Laserfiche_Merge\Components\LFDLLs\Interop.LFSO82Lib.dll.

Do I need to stay with x86 Interop.LFSO82Lib?
Should I go to 64 bit Interop.LFSO90Lib if I change vb code references?


Is there anything else I need to change to use WebLink 8.2.2 in Visual Studio 2012?

0 0

Answer

SELECTED ANSWER
replied on August 27, 2015 Show version history

LFSO interop files are installed into the GAC and you don't want to have one in your bin directory (though Visual Studio frequently pulls it in during the build process).  For the original error, that CLSID refers to the license reader, and the installer should have installed the 64-bit version of that.  If your app pool is in 32-bit mode, the COM framework will read from the 32-bit registry and not find the COM registration.

0 0

Replies

replied on August 28, 2015

Hi Brian. Thank you for your reply.

Now I am getting this error in the doc viewer.  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.

But I don't see any references to 'Laserfiche.I18n' in WebLink.  Is it?

 

 

0 0
replied on August 28, 2015

I don't believe WebLink has a dependency on that dll.  That must be something you introduced in this process.

I'm guessing you're trying to call into RA from some custom code you've added to WebLink.  Make sure you have the SDK redistributable installed on this machine and that any dlls that are present in the bin directory are 64-bit versions.

0 0
replied on August 31, 2015

I think I need to give up and revert back to VS 2008. There are just too many things going on inside WebLink I can't control.

Will WebLink 9.0 automatically install as 64 bit into VS 2012?

0 0
replied on August 31, 2015

WebLink will be installed as a 64-bit application on 64-bit OSes.  Which version of Visual Studio is present (if any) is not a factor.

0 0
replied on August 31, 2015

Ok, thank you.

0 0
replied on December 27, 2016

I solved the second problem by deleting these dlls from my bin folder after doing a build, and before running or deploying.

 Laserfiche.I18n.dll
 LaserficheImaging.dll

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

Sign in to reply to this post.