Setting the Application Root Directory of the COM+ Via C# code -
08-30-2006
, 06:45 AM
Hi,
I managed to set the dll.config file of my application in a desired
directory by setting a manifest file and setting the Application Root
Directory in my COM+ the the desired folder.
However, I would like to set the Application Root Directory via code.
(In order for it to be automatically deployed as part of my
installation)
The only response I found for this is:
"It is available through the "ApplicationDirectory" property of
the Applications collection in the COM+ administration API. "
I don't know how to use this information.
I also found that you can set:
System.EnterpriseServices.RegistrationConfig.Appli cationDirectory
but this is not a static property and when creating an instance of the
System.EnterpriseServices.RegistrationConfig
and then setting ApplicationDirectory to the desired folder,
When I try:
ConfigurationSettings.AppSettings["key"]
a null returns.
Any help will be appreciated :-)
Thank you. |