Using web.config from other assembly


A

Andrus

web.config contains application settings:

.....
<applicationSettings>
<MyApp.Service.Properties.Settings>
<setting name="Server" serializeAs="String">
<value>localhost</value>
</setting>
</MyApp.Service.Properties.Settings>
</applicationSettings>
</configuration>

From main project where those settings are defined I can use

Properties.Settings.Default.Server to access them.

How to acces this setting from child project?
Child project cannot reference to main project since this causes circular
reference.

How to read global application setting in web.config from child assembly ?

Andrus.
 
Ad

Advertisements


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