.net - Problem accessing AppSettings via configSource in Windows Server 2003 -


according msdn documentation, configsource supported on windows server 2003 sp2. however, when try access setting using following syntax:

system.configuration.configurationmanager.appsettings["settingname"]; 

then null returned. however, same app works on windows 7 , windows xp (i.e. appsettings["settingname"] returns expected value when using configsource).

the file configsource points exists sure, since copied entire application directory windows 7 server 2003 testing.

any ideas?

you have incomplete application manifest file. need add "assemblyidentity" element. details here. there ms connect bug here.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -