I have an asp.net application that uses sessions for user management. So, if the application is restarted then the user will lose their jobs.
I have some components used by this asp.net app and there are configurations near those components (class code in the How can I get it? Keep all your configurations in any xml file, in this way you also change the configuration on runtime, The application will not be restarted. Since the web Any changes in the configuration will restart the application. I got something, you can add your code to a bin folder). I will configure the configuration of those components Want to save somewhere else and want to replace them with back-end (administrative panels), and components have used up-to-date configs, but still the application should not be restarted (web configuration change app More Applications will result in the restart).
Edit:
app.config and app.config to get the settings from there Map to
ExeConfigurationFileMap exConfigFile = New ExeConfigurationFileMap (); ExConfigFile.ExeConfigFilename = Server.MapPath ("app.config"); Configuration config = Configuration Manager. OpenMapX Configuration (Xconfiff file, Configuration user. NON); // You can get app settings configuration in app.config by this string testConfig = config.AppSettings.Settings ["test"]. Value;
Comments
Post a Comment