CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 1999
    Location
    Leiden, the Netherlands
    Posts
    116

    Failed to register a .NET component in COM+

    Hello,

    I would like to register a .NET component in COM+.
    The class I implemented is very simple:

    using System;
    using System.EnterpriseServices;

    namespace ThreadingTest
    {
    /// <summary>
    /// Summary description for Class1.
    /// </summary>
    public class Class1 : ServicedComponent
    {
    public Class1()
    {

    }
    }
    }

    I strong named the assembly and then drag it into my COM+ package. COM+ gives the following error message:

    "0x80020009- Exception occurred. The eventlog may contain additional troubleshooting information".

    Unfortunately Event Viewer doesn't contain anything interesting.
    Does someone have any idea of what could be the problem?

    Arthur

  2. #2
    Join Date
    Nov 2004
    Location
    Poland
    Posts
    1,355

    Re: Failed to register a .NET component in COM+

    IMHO U have to run regasm first to register your assembly as a COM object.

    Best regards,
    Krzemo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured