UltimaSerial

A reference was created to embedded interop assembly '<assembly1>' because of an indirect reference to that assembly from assembly '<assembly2>'

 

Windaq add-ons
Windaq Add-ons

 

Issue:

When using XChart, UltimaMeter and UltimaWaterfall ActiveX in any .NET solutions, often you will get warnings like  

"A reference was created to embedded interop assembly 'stdole' because of an indirect reference to that assembly from assembly 'Interop.ULTIMAMETERLib'. Consider changing the 'Embed Interop Types' property on either assembly"

" A reference was created to embedded interop assembly 'stdole' because of an indirect reference to that assembly from assembly 'Interop.XCHARTLib'. Consider changing the 'Embed Interop Types' property on either assembly"

" A reference was created to embedded interop assembly 'stdole' because of an indirect reference to that assembly from assembly 'Interop.ULTIMAWATERFALLLib'. Consider changing the 'Embed Interop Types' property on either assembly"

The program runs fine, but you want to get rid of the warning.

Answer:

Highlight Project->yourproject Properties....->Reference->OLE Automation 

In its properties pane, you will find Embed Interop Type.

Change its value to False and the warning will be gone.


Last update: 11/14/12

www.ultimaserial.com