C
Chris Crowther MBCS
Hi All,
I was looking to use user settings to store some, well, user settings,
but right now the directory used to store changes periodically and I
haven't been able to work out what causes it.
It's storing it in a path that follows the pattern:
\Local Settings\Application Data\RHD_Research_Limited\<Application
Name>_Url_?????????\<Version>
Where the "??????" portion is what was changing and is a stream of,
seemingly, random alpha numeric data; I'm guessing it's actually a hash
of some kind.
The form looks a little odd to me; I'm not sure where the Url* portion
is coming from or why the spaces have been changed to underscores.
Normally I'd expect to see the base path look more like
\Local Settings\Application Data\RHD Research Limited\<Application Name>
The version portion I expect to change when the assembly version number
is bumped - as it does - which is fine because that's what
Properties.Settings.Default.Upgrade() is for. Problem is that doesn't
work if the application directory keeps changing as well; it can't find
the old settings to upgrade them, because they're obviously in a
different path - this is the real problem for me.
Anyone have idea what is causing the application name to get mangled the
way it is and - a little more importantly - how I can stop it? If I
can't get it to work properly I'm going to have to fall back to using
registry entries - it is a winforms app - which is no great hardship,
it's just moderately annoying.
I was looking to use user settings to store some, well, user settings,
but right now the directory used to store changes periodically and I
haven't been able to work out what causes it.
It's storing it in a path that follows the pattern:
\Local Settings\Application Data\RHD_Research_Limited\<Application
Name>_Url_?????????\<Version>
Where the "??????" portion is what was changing and is a stream of,
seemingly, random alpha numeric data; I'm guessing it's actually a hash
of some kind.
The form looks a little odd to me; I'm not sure where the Url* portion
is coming from or why the spaces have been changed to underscores.
Normally I'd expect to see the base path look more like
\Local Settings\Application Data\RHD Research Limited\<Application Name>
The version portion I expect to change when the assembly version number
is bumped - as it does - which is fine because that's what
Properties.Settings.Default.Upgrade() is for. Problem is that doesn't
work if the application directory keeps changing as well; it can't find
the old settings to upgrade them, because they're obviously in a
different path - this is the real problem for me.
Anyone have idea what is causing the application name to get mangled the
way it is and - a little more importantly - how I can stop it? If I
can't get it to work properly I'm going to have to fall back to using
registry entries - it is a winforms app - which is no great hardship,
it's just moderately annoying.