Scenario
In a Microsoft .Net program, you are using Office libraries to perform operations). For example Interop.Excel.dll.
During compilation, this error appears on the class:
Interop type 'mytype.dll" cannot be embedded. Use the applicable interface instead.
Solution
In Visual Studio, select the library you are having the error on.. Open the Properties tab for the assembly in Visual Studio and set “Embed Interop Types” to “False”.

