I have a code base that was used as an ASP.Net web application. Now it forks and is used as part of two WinForms applications.
The main difference is that WinForms applications must save their settings "for one user", and a web application only needs to save the settings at the "application" level. They have the same settings, but are saved differently depending on the type of application.
Clarification: the same code will be used as the basis for the website application, as well as the code base for the desktop application. In a desktop application, the settings should be stored in the appropriate user directory, but this does not work when the same code starts the web application. Hence the dilemma. How to switch from a situation like web.config for a web application to a situation like user.config (stored in the corresponding directory) for a desktop application.
Does anyone know if the settings.settings file is available for a web application?
Is there a better way to keep the same settings in two ways?
Jared
source share