Re: Updating web.config file with a dll from an asp.net web applicatio

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 07/09/05

  • Next message: Matthias Truxa: "XslTransform "Invalid Xml" Security Problem"
    Date: Sat, 09 Jul 2005 02:52:06 -0700
    
    

    Hello spai,

    depends on the OS - IIS 5.x uses the ASPNET account by default. IIS6 uses
    Network Service by default.

    Be aware that evey time you change the web.config you application will get
    recycled - this may also result in unexpected behavior.

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > We have developed an asp.net web application which provides the user
    > with a form to allow them to update configuration settings in the
    > web.config file as well as other config files. The asp.net web page
    > calls a c# dll to update the config file.
    >
    > When we do this we get an access denied error. We can resolve this
    > error by allowing everyone to have full control on the config files.
    > We tried just allowing aspnet to have full control on the files and
    > still got the error. The only way we have been able to get this to
    > work was to set full control for everyone.
    >
    > If not aspnet what user do the c# dll's run as? What security
    > settings must be set on the config files to allow the dll's to update
    > the config files.
    >


  • Next message: Matthias Truxa: "XslTransform "Invalid Xml" Security Problem"

    Relevant Pages

    • Re: app config file downloading (not) for winform deployment model
      ... Hi Mark, ... DLL's don't use config files. ... The Quick Starts have a sample for using a Windows Forms control in an ASPX ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: more git updates..
      ... > version control of system config files on linux systems. ... I was thinking that the GIT checkin should actually be done by the ...
      (Linux-Kernel)
    • Re: Easy Fedora administration... why not?
      ... easy admin interface (things like network -> NetworkManager, ... if you didn't hand modify files, as it required the config files to be ... collection of icons for control panels. ... that's only useful for configuring the local machine, ...
      (Fedora)
    • Updating web.config file with a dll from an asp.net web applicatio
      ... form to allow them to update configuration settings in the web.config file as ... allowing everyone to have full control on the config files. ... allowing aspnet to have full control on the files and still got the error. ...
      (microsoft.public.dotnet.framework.aspnet.security)

  • Quantcast