Re: Application Settings

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 11:14:44 -0500

You might consider writing to an XML file in your VDIR if you have
permissions to do that on the server. You'd want to be sure that your file
isn't named such that it could be served by IIS though or your users may
download your settings. You could use a .config file extension to help with
that.

Another idea would be to use web.config for the read-only settings
(connection string) and then persist the read/write stuff to a database.
That's probably what I'd do.

Joe K.

"Glenn Thimmes" <glennthi@nospam_msn.com> wrote in message
news:uxOhpPcZEHA.1508@TK2MSFTNGP09.phx.gbl...
> I posted this question in the ASP.NET forum and did not get an answer, so
I
> thought this might be a better place.
>
> I am needing to read and write application settings from within my ASP.NET
> application. My web.config is not an option since I need to be able to
write
> settings as well. My database is not an option either as the database
> location itself is one of the settings.
>
> I've been trying to work with Isolated Storage, but it is obviously
designed
> to be user specific. I've attempted using Impersonation to load the same
> settings for every session, but this doesn't really work. If I impersonate
> my user account it works. If I impersonate the Administrator account it
> works. But if I create a new user account on the machine and try to
> impersonate that account, I just get the following error when trying to
get
> the isolated storage:
>
> Unable to create the store directory.[The system cannot find the file
> specified. ]
>
> I've even made this new account an administrator, but I still get the same
> results.
>
> Is there a better way to do what I am trying to do? Isn't there
> some simple method of saving and retrieving application wide settings in
an
> ASP.NET environment? I also should mention that it is required that I use
> windows authentication for this site. When I turn that off, the IUSR
account
> works just great for saving and loading settings. But unfortunately I must
> authenticate each use in order to use domain security for using Reporting
> Services.
>
> Thank you for any suggestions,
>
> -Glenn Thimmes
>
>



Relevant Pages

  • Re: Cannot access target throught network
    ... I hope you have included guest user account in your Configuration. ... The easiest way for you, I think, to check the guest account settings would be using "User Accounts" control panel applet (or browse ... Check if the guest account not disabled there. ...
    (microsoft.public.windowsxp.embedded)
  • Re: The Case of the Missing Folders
    ... Now the weired thing is that this only happens in one user account, ... I ran the latest security release from MS and this seems to have fixed the View Source and JavaScript problems, However the Page Rank bar is still not working (only on this one account). ... I have found that the Folder hierarchy in this account stops at Documents and Settings> User> Local Settings> Temporary Internet Files. ... If I run a virus scan on the Doc and Settings folder I can see that the scanners are looking at files in the folders that have somehow become hidden> Content.IE> Others. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Application Settings
    ... Since I'm using Windows authentication and I ... > download your settings. ... If I impersonate the Administrator account it ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: apllication wide settings storage
    ... protected void Application_Start(Object sender, EventArgs e) ... >location itself is one of the settings. ... If I impersonate the Administrator account it ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Should programs install to All Users, Default User, or Me?
    ... > ...where you have to duplicate settings to each account by hand. ... well - - - everything visible in Admin as I have in woody! ... For now I reset the basics and log'd out of admin and back into woody, ...
    (microsoft.public.windowsxp.general)