----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: SitaramanM Message 4 in Discussion Hi Agree with you on the point that having a application specific setting at a server level file is not very appropriate. But you need to take into consideration the fact that dlls cannot have any config files and only the applications(read exes) that launch the dlls in their process space can have config files. In the case of ASP.Net the asp.net itself is a hosting server and when it launches a new appdomain for running your asp.net application it specifies the web.config to be the config file for the appdomain in which ur asp.net app is going to run. That said, in the case of com/com+, the basic fact is that it uses a surrogate process within which the dlls are launched. So in this case it is the dllhost.exe which is going to host ur dll in its process space. So settings have to be in dllhost.exe.config However what you can also do is that, mimic what the asp.net runtime does. Instead of running your app in the default appdomain, at the entry point create a new appdomain, set the appbase property of the new appdomain to the web virtual folder and the appconfig file property of the new appdomain to the web.config(not exact propertynames, check msdn) and then start that appdomain and launch your components in that appdomain. This is another option To summarise, the config file will always be picked up based on the launching executable basis(whether u local application or COM+ dllhost). The only way you can override this functionality is to start up ur own appdomain and launch ur components in tht hth regards, sr ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
