I am creating a web application on the .NET 4.0 framework (beta2) in C#.
When I try to use a assembly called "ActiveHomeScriptLib", I get the following error:
Interop type 'ActiveHomeScriptLib.ActiveHomeClass' cannot be embedded. Use the applicable interface instead.
When I change the framework to version 3.5, I don't have any errors.
What is an Interop Type and why does this only occur when I use the 4.0 framework?
Like Jan It took me a while to get it .. =S So for anyone else who's blinded with frustration.
Got the solution
Go to references right click the desired dll you will get option "Embed Interop Types" to "False" or "True".
Here's where to set the Embed Interop in Visual Studio 2012