« Experiences with Whidbey Beta 1 | Main | Woodworking, Hardwood »

Windows Forms user settings & save settings

These comments relate to Whidbey Beta 1.

Setting the SaveSettings property to true in the designer for a toolbar strip causes app.config to be rewritten with encoding Windows-1252 which seems to prevent the application from starting. You may see an error similar to the following:

Error while trying to run project: Unable to start debugging.

Unable to start program 'C:\yourprogram.exe'.

This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

Editing the app.config file to change the encoding back to UTF-8 may fix your problem.

In general, using C#, the support for user configuration settings appears to be very brittle in Beta 1.

 

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)