Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie - how to section off my app.conf file

Status
Not open for further replies.

Big1934

Programmer
Jul 1, 2009
33
US
Problem 1.In my config file there is a squigglies under the <Photosection>. Can I not do it this way ?

Problem 2. Before I was told to group or section off the config file for the FileSystemWatcher project, I do not know the syntax to call it from the vb.net code.

Here is what I can use to call any key in the app.conf: ConfigurationSettings.AppSettings("Photo_FileExt"), but how do I call keys in my new <photoSection> section? ConfigurationSettings.AppSettings.PhotoSection("Photo_WatchDirectory") ???

I am grasping at straws. I am really the groundskeeper but their developer is out.


<appSettings>
<!--Below is for Photo_Project Key Values-->
<PhotoSection>
<add key="Photo_WatchDirectory" value="C:\WATCHFOLDER\" />
<add key="FileExt" value="*.pdf" />


<!--Below is for Generic Key Values-->


<!--Note* Increase the amount of Buffer for file processing. -->
<add key="FWBufferSize" value="8192" />
<!--Note* It represents the number of seconds. If this counter is reached the target file will be abandonded. -->
<add key="FileLockCounter" value="60" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top