开发者

.NET User.config file is deleted on Citrix

I have written a .NET app and use the built in User Se开发者_如何学Pythonttings to store user specific information. It works brilliant. The user.config file is stored in the Apps/Local directory.

Now, a client is running my app on Citrix. I recently figured out that their Citrix server is configured to clean out the Apps/Local directory when a session closes. As a result, all user settings are deleted between the sessions. Not good.

My question is how to get around this. Is there any way to configure the settings to store the user.config in the roaming profile instead of Apps/Local? (The roaming profil content (Apps/Roaming) is not cleared by Citrix) Has anyone run in to this situation besides me?

Regards Karl


I ran into the same problem with my application that uses a class inheriting from System.Configuration.ApplicationSettingsBase to get/set user settings by adding a SettingsManageability attribute to the settings properties, e.g.:

[UserScopedSetting, SettingsManageability(SettingsManageability.Roaming)]

With the Visual Studio settings designer, it looks like you can do the same via the properties window when a setting is selected in the designer, by setting the "Roaming" property's value to "True".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜