C# COM+ and App.Config

G

Guest

All,

I am writing a C# COM+ component and would like know if there is any issue
in using a App.config file (i.e. using System.Configuration) namespace to
access certain apps settings?

Thanks
Msuk
 
N

Nicholas Paldino [.NET/C# MVP]

Msuk,

As long as you are reading the values, and not attempting to write them,
you shouldn't have a problem with it. You just have to make sure that you
get the application configuration settings in the right place. If you
designed it properly (separating interfaces from implementation with an
assembly boundary), then you should not have a problem.

If you don't want to deal with these issues though (worrying that the
app.config file is reachable, etc, etc), then set the construction string
(in COM+ administration) for your component to the path where you can find
the app.config file, or where you can find your own config file.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top