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

    Question

  • Hello everybody.

    I'm working on a search project and in this project I have included this Microsoft.Search.Interop.dll file, since it provides a good API for adding folders to the search crawler scope (IncludedInCrawlScope and AddUserScopeRule). This file comes from the DSearch project offered online as an example to the Windows Search SDK.

    However, when moving this file from that project to another one, I get the following error:

    Cannot embed interop types from assembly 'c:\...pathtofile...\Microsoft.Search.Interop.dll' because it is missing the 'GuidAttribute' attribute.

    How should I go about solving this problem?

    I'm on a Windows Server 2008, using Visual Studio 2010 RC.

    Thanks!

    PS: Not sure if this is the correct forum category in which to post this.
    • Moved by CoolDadTxMVP Thursday, March 25, 2010 1:44 PM Not IDE related (From:Visual C# IDE)
    Thursday, March 25, 2010 10:41 AM

All replies

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

    • Proposed as answer by EuroPhilC Monday, September 13, 2010 2:18 PM
    Thursday, May 27, 2010 3:20 PM