Windows Develop Bookmark and Share   
 index > Windows Forms General > How to upgrade settings if app uses different strong name every revision.
 

How to upgrade settings if app uses different strong name every revision.

Hi All,

I'm running into an issue where I want to migrate all user.config settings from a previous revision, but ApplicationSettingsBase.Upgrade() does seem to work if the application uses a different strong name. So the application portion of the path to the user.config file is different because the strong name (or some key) in integrated with the app name. For example:

\Documents and Settings\<username>\Local Settings\Application Data\<company>\App.exe_StrongName_<multi-digit-key>\<applicationrevision>\user.config

In a new revision, a new strong name is used.

Is there a way to migrate the user's settings in this scenario?

Thanks in advance,

JRF

JoseRF  Friday, May 16, 2008 8:46 PM

Hi JRF,

IMO, there's no way to migrate the user's settings in this scenario, because the ApplicationSettingsBase.Upgrade method find and migrate the user.config file of the previous versioninternally according to the name of the application.

Linda

Linda Liu  Tuesday, May 20, 2008 7:52 AM

You can use google to search for other answers

Custom Search

More Threads

• Closing a Form (DLL Version)
• ToolTip Font
• how to implemet Zoom in and zoom out operations
• Tree Grid View data insertions problem
• Minimum Height for Form?
• PointToScreen Returning negative values....
• Multiple lines in the propertygrid
• MDI parent+MDI child form with an issue?????
• Seeking better way to load user controls in Windows form
• Giving Form/Gui a MAC OS Look/Skin