Click to See Complete Forum and Search --> : Failed to register a .NET component in COM+


Arthur
February 2nd, 2005, 11:20 AM
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

Krzemo
February 18th, 2005, 05:27 AM
IMHO U have to run regasm first to register your assembly as a COM object.

Best regards,
Krzemo.