HighTechTalks DotNet Forums  

Setting the Application Root Directory of the COM+ Via C# code

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss Setting the Application Root Directory of the COM+ Via C# code in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
fuffy.l@gmail.com
 
Posts: n/a

Default 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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.