« Previous Next »

Thread: Remove Config Section during build

Last post 07-01-2009 8:18 PM by ksingla. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-18-2009, 5:12 PM

    • JonMny
    • Not Ranked
    • Joined on 08-13-2007, 12:34 PM
    • Posts 1

    Remove Config Section during build

    On my server the root level config has

    <httpModules>
       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
      </httpModules>

    for the sub folders I want to deploy the web config without this section how can I do this? can I do this with the config replacements?

     

  • 07-01-2009, 8:18 PM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-14-2006, 3:02 AM
    • Redmond, WA
    • Posts 863

    Re: Remove Config Section during build

    <httpModules>
      <remove name="ScriptModule"/>
    </httpModules>

    Adding the configuration above in your web.config will make ScriptModule module not available for your application. Adding a <clear/> will make all parent modules unavailable.

    Follow me on twitter at http://twitter.com/kjsingla
Page 1 of 1 (2 items)
Microsoft Communities