Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot embed interop types from assembly "...\Microsoft.Search.Interop.dll" because it is missing the GuidAttribute attribute

I get this error when adding a reference to the Microsoft.Search.Interop.dll library in a new project that I created.

Microsoft.Search.Interop.dll is a library that provides some useful API to communicate with Windows Search. I use it in order to add a folder to the system indexer.

Did anybody else get this error, and if so, how should I go about solving it?

I'm using VS2010 RC on a Windows Server 2008 if that is important.

like image 969
Alex Avatar asked Mar 25 '10 10:03

Alex


1 Answers

Go to the Properties window for Microsoft.Search.Interop and change the "Embed Interop Type" property to False.

like image 63
Karin Avatar answered Sep 20 '22 17:09

Karin