Dear All
ConfigurationManager.GetSection("Section1") only retrieve the default app.config's section information and it returns a object that can be casted. Now i have a specified configuration that used by my application. I have loaded the specified configuration
file into the memory, please see the below code:
this is the specified config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="Section1" type="CortexShell.DisplayModeSectionHandler,CortexShell" />
</configSections>
<!--The DisplayMode can be found in the code by searching "UsedDisplayMode" Enum, currently there are two mode: ScreenSaver and MonitorDisplay-->
<ApplicationDisplayMode DisplayMode="MonitorDisplay" Timeout="300" />
<appSettings>
<add key="HomePage" value="http://localhost/tms/boot.aspx" />
<add key="RemoteSupportPage" value="http://localhost/tms/Login/RemoteSupport.aspx" />
<add key="ZoomPercentage" value="100" />
<add key="Red5ServerAdd" value="vc.healthportal.telemedcare.co.nz" />
<add key="Red5AppName" value="TMCVideoConference" />
</appSettings>
&
View Complete Post