.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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -