#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Posts
    17
    Rep Power
    0

    Error ASP web.config, when run locally


    Hi guys,

    I need to make some changes to aspx website, so I want to run it locally.

    I have loaded web site locally on IIS 7. I have done all configuration, now when I run it I get following error.
    -----------------------------------------------------
    Detailed Error Information

    Module IIS Web Core
    Notification Unknown
    Handler Not yet determined
    Error Code 0x800700b7
    Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
    Config File \\?\C:\inetpub\wwwroot\web.config
    ----------------------------------------------------
    Config Source

    4: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    5: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    6: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

    I found some solution
    The workaround for the first scenario is to update the application-level Web.config file by including the boilerplate configuration text from a Web.config file that was generated automatically by Visual Studio 2008.

    but I hardly understand it, what should I do, because I am quiet new to aspx.

    Thank you
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,424
    Rep Power
    4539
    I don't use system.config files or IIS, but the error message sounds plain enough. Somewhere in your config settings you have defined some attribute more than once.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Posts
    17
    Rep Power
    0
    The line I have put in red above gives me an error, config file was already included in website, I am only doing some update to website...
    I have checked file and it is not repeating anywhere, so I am still confused.

    Thanks

IMN logo majestic logo threadwatch logo seochat tools logo