none
Windows 8: msfeeds.dll -- Error when trying to instanciate FeedsManagerClass RRS feed

  • Question

  • Hello,

    maybe this question belongs to another forum, just couldn't find out where to appropriately place it.

    Anyway: I'm trying to implement a managed RSS class, merely being a wrapper around the existing Windows RSS platform. So I added a reference to msfeeds.dll from the \Windows\system32 folder.

    But this line of code fails to compile:

    this.feedManager = new FeedsManagerClass();

    The compiler says:

    Interop type 'Microsoft.Feeds.Interop.FeedsManagerClass' cannot be embedded. Use the applicable interface instead.

    So, what would be the correct way to do it?

    Thanks in advance and kind regards,

    Carsten

    Monday, September 3, 2012 3:22 PM

Answers

  • Select Microsoft.Feeds.Interop reference in project references and select Properties from its context menu. In properties set "Embed Interop Types" to false.

    .NET 4 tries to embed such interop assemblies in your own assembly but this doesn't always work.

    • Proposed as answer by Mike FengModerator Wednesday, September 5, 2012 9:06 AM
    • Marked as answer by CPosingies Wednesday, September 5, 2012 1:20 PM
    Monday, September 3, 2012 3:45 PM
    Moderator

All replies

  • Select Microsoft.Feeds.Interop reference in project references and select Properties from its context menu. In properties set "Embed Interop Types" to false.

    .NET 4 tries to embed such interop assemblies in your own assembly but this doesn't always work.

    • Proposed as answer by Mike FengModerator Wednesday, September 5, 2012 9:06 AM
    • Marked as answer by CPosingies Wednesday, September 5, 2012 1:20 PM
    Monday, September 3, 2012 3:45 PM
    Moderator
  • Hi Carsten,

    Welcome to the MSDN Forum.

    How about Mike Danes's suggestion?

    Best regards,


    Mike Feng
    MSDN Community Support | Feedback to us
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, September 5, 2012 9:06 AM
    Moderator
  • Perfect! Thanks, Mike!
    Wednesday, September 5, 2012 1:21 PM