easy com+ problem

  • Thread starter Thread starter Lasse Edsvik
  • Start date Start date
L

Lasse Edsvik

Hello

can someone tell me why i get "One or more files do not contain components
or type libraries.
These files cannot be installed" when i try to register it in Components
Services?


using System;

using System.EnterpriseServices;

namespace COMTest

{

public class Class1 : ServicedComponent

{

public Class1() {}

public string WriteShit()

{

return "shite";

}

}

}
 
Where do you see the error message? From COM+ explorer or another
tool? Does the assembly the class is in have a strong name?
 
Scott,

in component services, computers/my computer/COM+
Applications/COMTest/Componets + New Component, and there in the wizard I
get that error.

nopes, havent touched the assembly, what's needed in that one?

/Lasse
 
You're using RegSvcs.exe, right? You can't load a .NET assembly into COM+
the same way you'd do with a DLL written in VB or VC++.

Open the VS.NET command prompt and type in "regsvcs /h". MSDN also contains
full documentation on the tool.
 
Back
Top