Auto gen web.config

Last post 07-04-2009 12:52 AM by pryanjr. 2 replies.

Sort Posts:

  • Auto gen web.config

    07-03-2009, 2:00 PM
    • Member
      192 point Member
    • pryanjr
    • Member since 04-19-2009, 2:51 PM
    • Posts 91

    Hello,
    Is there a way to automatically generate a web.config file with allow permissions for a newly created user and deny permissions for everyone else?
    Thanks,
    Peter Ryan, Jr.

  • Re: Auto gen web.config

    07-04-2009, 12:33 AM
    • Participant
      1,768 point Participant
    • nmreddy83
    • Member since 01-21-2009, 6:00 PM
    • India
    • Posts 316

    if you touch the web.config dynamically, it will recyle Application pool of site. It will loose all of your Session Data and Cache data if you have any

    You can change web.config dynamically..

    ***Hope this helps you***
    ***Please mark as answer if this helps you. ***

    thank you,
    -nm reddy
  • Re: Auto gen web.config

    07-04-2009, 12:52 AM
    • Member
      192 point Member
    • pryanjr
    • Member since 04-19-2009, 2:51 PM
    • Posts 91

    That is okay if the data is lost but is there a way to make a web.config in a newly created directory with just the text below?

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <system.web>
            <authorization>
              <allow users="CreateUserWizard.UserName"/>
                <deny users="*" />
            </authorization>
        </system.web>
    </configuration>

Page 1 of 1 (3 items)