Hi all..
I am trying to get my head around the COM+ Interoperability with .NET and was wondering if someone could point me in the right direction here...
Basically I have coded a DLL with a simple function to run a process (using the .NET Process class).
I have found that I can dynamically install the DLL and set certain attributes if I inherit from the ServicedComponent class.
There are 2 issues that I currently have:
1: I have defined the role/s to setup in my application by defining them in the objects' AssemblyInfo
I need to understand how I can now add user accounts to this role and setup the role access on my objects' methods.
2: I have defined that the object be run as a ServerComponent again in the AssemblyInfo
How can I now define that this process be run as a Service, and supply the context under which the process will run? I cannot seem to find any attribute that allows this.
A further (slighly minor) question that I have is; when the assembly is compiled and installed when I open Component Services and expand my Com Application. I am unable to see the methods that are exposed although I can succesfully call and execute them. Does anyone know why this is? The Functions are declared as PUBLIC.
Many thanks for your assistance.
I am trying to get my head around the COM+ Interoperability with .NET and was wondering if someone could point me in the right direction here...
Basically I have coded a DLL with a simple function to run a process (using the .NET Process class).
I have found that I can dynamically install the DLL and set certain attributes if I inherit from the ServicedComponent class.
There are 2 issues that I currently have:
1: I have defined the role/s to setup in my application by defining them in the objects' AssemblyInfo
Code:
<Assembly: ApplicationAccessControl(True)>
<Assembly: SecurityRole("myUser")>
I need to understand how I can now add user accounts to this role and setup the role access on my objects' methods.
2: I have defined that the object be run as a ServerComponent again in the AssemblyInfo
Code:
<Assembly: ApplicationActivation(ActivationOption.Server)>
How can I now define that this process be run as a Service, and supply the context under which the process will run? I cannot seem to find any attribute that allows this.
A further (slighly minor) question that I have is; when the assembly is compiled and installed when I open Component Services and expand my Com Application. I am unable to see the methods that are exposed although I can succesfully call and execute them. Does anyone know why this is? The Functions are declared as PUBLIC.
Many thanks for your assistance.