Build error every other time

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

Build error every other time
 
Subscribe
Stephen Lee




Posts: 6
Joined: 2022-06-16
I have an Outlook Addin project that is working correctly. However, every other time I build the project, I got the following errors. If I immediately build again, the error goes away and I am able to run the Addin.

The assembly 'AABusinessData, Version=19.162.176.1, Culture=neutral, PublicKeyToken=b02ef47df7b028b1' is not registered for COM Interop. Please register it with regasm.exe /tlb.

"AAOutlookAddin2021.dll" could not be converted to a type library. Type library exporter encountered an error while processing 'CMS.AA.OutlookAddin.DataObjects.OutlookDataObject, AAOutlookAddin2021'. Error: Error loading type library/DLL. AAOutlookAddin2021

What do I need to do to get rid of this error? What does regasm.exe do? Will I have problem in production?
Posted 15 Aug, 2022 19:23:35 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Hello Stephen,

I suppose you also get a warning explaining why AABusinessData is not registered for COM interops. For instance, have a look at https://www.add-in-express.com/forum/read.php?FID=5&TID=16212&MID=84015.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 16 Aug, 2022 05:34:37 Top
Stephen Lee




Posts: 6
Joined: 2022-06-16
Changing COM visibility on AABusinessData fixed my build problem.

Thank you
Posted 17 Aug, 2022 19:14:17 Top
Andrei Smolin


Add-in Express team


Posts: 18338
Joined: 2006-05-11
Good news!

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Aug, 2022 03:35:44 Top