Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Not getting a setting from the config file

$
0
0

Hi all;

We have a situation where on one person't computer, it is not reading a value set in the config file. Works fine elsewhere. This is an add-in to Word so the file is winword.exe.config and is as follows:

<configSections><section name="WindwardReports" type="System.Configuration.NameValueSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/></configSections><WindwardReports><add key="sql.timeout" value="240"/></WindwardReports>

And the code is:

var coll = System.Configuration.ConfigurationManager.GetSection("WindwardReports");

var str = coll["sql.timeout"];

How can we figure out why this is not working? Is there a way to list out what sequence of config files .NET is looking at and what it is seeing?

thanks - dave


What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>