Reputation: 171
I have developed a winforms application which consists of a file path value (fetching crystal reports) in add key of app.config file. I have installed the application and trying to change the file path (in app.config as well as exename.exe file) from old to new but the application doesnt take new crystal reports file path instead retrieves old data. Am i missing any other file to be updated ? Kindly help to get it solved ASAP.Thanks
Upvotes: 1
Views: 3614
Reputation: 14389
Verify that the setting you are trying to change in exename.exe.config
file is set to User scope rather than Application.
From Visual Studio go to your Project properties and Choose Settings
You will find listed all your settings. From there verify that each setting you want to be change by user has scope User
Here you can find detailed information on the difference between User
and Application
scope
Upvotes: 1
Reputation: 17435
You probably don't want to change App.config
, as that file will be copied to exename.exe.config
when you build.
After installing your program, you'll need to change your exename.exe.config
file to pick up your changes.
Upvotes: 1