This project has moved. For the latest updates, please go here.

ClosedXML in DLL

Aug 4, 2013 at 5:40 PM
I want to use ClosedXML in a VS2010 dll.

When I try to register (regasm /tlb MyDll.dll /codebase I get error RA0000 ... could not load file or assembly ClosedXML...

I saw something regarding ClosedXML not being "COM visible"

Does this make it impossible to use in a dll ?
Coordinator
Aug 4, 2013 at 7:28 PM
Edited Aug 4, 2013 at 7:29 PM
You'd have to register it for COM interop in the project's configuration window. See http://support.microsoft.com/kb/817248

I'll see if there are any downsides to it...
Aug 4, 2013 at 9:08 PM
This is exactly what I did ???
Coordinator
Aug 4, 2013 at 9:56 PM
I'm just returning to the project after a LONG break so forgive me for I'm a little rusty and may not be of much help.

It could be a number of things. Assuming you've downloaded the ClosedXML code and compiled it with the com visible option; then it could be you're loading it from a network shared drive. If that's not the case then I have no clue.
Aug 4, 2013 at 11:08 PM
Any ideas are much appreciated!

After hours of head-banging -- I tried to create a Windows Forms project instead... the exe threw up the same exception: could not load file or assembly ClosedXML...

I then realized that regasm had to be run on the ClosedXML.dll AS WELL AS my dll (DUH).

I'm now back in business with my class dll !!!

Thanks for your help.