Deploy as Website creates duplicate scriptResourceHandler section

Step 1: Create Application Pool

  • CLR 1.1

Step 2: Deploy a Nuget Package

  • Application Pool: No Managed Code

Immediately after this, when I browse IIS and attempt to use the Configuration Editor, I get this error:

Filename: \?\D:\PATH_REMOVED\web.config
Line number: 14
Error: There is a duplicate ‘system.web.extensions/scripting/scriptResourceHandler’ section defined

Here are the first few lines from that web.config.

<?xml version=“1.0”?>
<!–
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
–>
<configuration>
<configSections>
<sectionGroup name=“system.web.extensions” type=“System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35”>
<sectionGroup name=“scripting” type=“System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35”>
<section name=“scriptResourceHandler” type=“System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35” requirePermission=“false” allowDefinition=“MachineToApplication”/>
<sectionGroup name=“webServices” type=“System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35”>
<section name=“jsonSerialization” type=“System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35” requirePermission=“false” allowDefinition=“Everywhere”/>
<section name=“profileService” type=“System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35” requirePermission=“false” allowDefinition=“MachineToApplication”/>
<section name=“authenticationService” type=“System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35” requirePermission=“false” allowDefinition=“MachineToApplication”/>
<section name=“roleService” type=“System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35” requirePermission=“false” allowDefinition=“MachineToApplication”/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<appSettings/>

Hi Jeff,

Thanks for getting in touch.

Could you send through a full deployment log for a deployment of this project, this might show us what is going on here.

We don’t make any changes to web.config files other than applying xml transformations and updating variable values (if configured).

Thank you and kind regards,
Henrik

Please close this ticket. This was self-inflicted, no fault of OctopusDeploy.

Hi Jeff,

Good to hear that you have been able to resolve this issue on your own.

Thank you and kind regards,
Henrik

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.