Re: Change Web.config value programatically
From: Paul Glavich (glav_at_aspalliance.com-NOSPAM)
Date: 12/30/03
- Previous message: Sachin Kharsani[MSFT]: "Re: Access to the path is denied"
- In reply to: mg: "Change Web.config value programatically"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 30 Dec 2003 20:28:02 +1100
This is generally not recommended, however, you could assign specific
read/write rights (ACL) to the user you have assigned as the user context in
project B. If you simply have the generic aspnet user defined for the app,
then you would be giving read/write access to the generic ASPNET user which
would allow anyone running under that user to modify that file, which is not
a good idea. Also bear in mind that each time that file is modified, either
manually or programmatically, that AppDomain for Project A will be
restarted, and any users on the site at that time would probably be booted
off or at least have to re-initiate the browser session.
-- - Paul Glavich "mg" <mg@theworld.com> wrote in message news:052e01c3ce05$4e4d8f50$a601280a@phx.gbl... > How can I change the value of "timeout" in Web.config > > <sessionState timeout="20" /> > > in one deployed app (project A) from a method call in a > WebForm (C#) that's running in another deployed app > (project B) on the same server.
- Previous message: Sachin Kharsani[MSFT]: "Re: Access to the path is denied"
- In reply to: mg: "Change Web.config value programatically"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]