Using Third Party Assembly - Not Registered for COM Interop

Add-in Express™ Support Service
That's what is more important than anything else

Using Third Party Assembly - Not Registered for COM Interop
 
Sean Devenish




Posts: 78
Joined: 2015-11-30
I am attempting to use Serilog for some logging for our Excel Addin. This is included in the application via a nuget package which provides two dependant assemblies, Serilog and Serilog.FullNetFx.

When attempting to build the application, we are getting build errors as follows:

Error 57 The assembly 'Serilog, Version=1.5.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' is not registered for COM Interop. Please register it with regasm.exe /tlb.

Error 58 The assembly "C:\Projects\Addin.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'Addin.Configuration.UserEnricher, Addin'. Error: Error loading type library/DLL.


What is the recommended approach for utilising a third party library like this? Do we need to register it ourselves for COM Interop or is there another method?
Posted 21 Apr, 2016 23:59:37 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Sean,

Please use regasm.exe to register the third-party assemblies. It should solve the issue.
Posted 22 Apr, 2016 06:29:23 Top