.Net Error Interop type cannot be embedded

While developing in the Visual Studio for .Net you can get an error like this: "Interop type 'CrystalDecisions.Enterprise.SessionMgr' cannot be embedded. Use the applicable interface instead." or in German: "Interop Typ 'CrystalDecisions.Enterprise.SessionMgr' kann nicht eingebettet werden. Verwenden Sie stattdessen die anwendbare Schnittstelle."

 

To aviod this error, you have to change the properties of this reference. You have to switch the "Embed Interop Types" from True to False.

 

Visual Studio Reference Properties
Visual Studio Reference Properties

After this you can compile your program without an error.

Write a comment

Comments: 0