I need my application to read this file to gather a web service URL value.
This way, I can deploy my application and edit the config file on their system to point to their local web service path and my program needs to read this value when declaring the web service path.
I have this code so far:
Private ws As New localhost.IDataCollectionservice()
ws.Url = ConfigurationSettings.AppSettings("CS_Time_Entry_localhost_IDataCollectionservice")
I get an error on the line above about it being obsolete??
I have CS_Time_Entry_localhost_IDataCollectionservice set up on my Settings tab in My Project and have confirmed my app.config file and exe.config file contain this value.
I've been told if I'm in Debug mode, my code will read the app.config file and if in Release mode, it will read the exe.config file.
How do I read these value from the app.config and exe.config files?