DNN7 Update system.web Extensions Already Loaded

Updating a website from DNN 6 to 7 I initially had errors related to system.web extensions already being loaded.

My first approach was to comment out the entries highlighted as errors, wishing to see whether it was a global issue, or just a single entry. Working through the web.config file I commented out each instance, trying again with a view of the website.

The resulting page was un-styled with a white background, missing components and references, for example JQuery and parts of the DotNetNuke JavaScript.

Using Firebug there were errors such as

TypeError:dnn.createDropDownList is not a function
title="dnn.createDropDownList('#ControlBar_PageList', {"containerId":"ControlBar_PageList","disabled":false,"firstItem":{"key":"","value":"<None Specified>"},"internalStateFieldId":"ControlBar_PageList_state","itemListContainerSelector":".dt-container","itemListSelector":".dt-content","loadingResultText":"...Loading Results","onSelectionChanged":["dnn.controlBar.ControlBar_Module_PageList_Changed"],"selectItemDefaultText":"Select A Web Page","selectedItemCollapseTooltip":"Click to collapse","selectedItemExpandTooltip":"Click to expand","selectedItemSelector":".selected-item","services":{"getChildrenMethod":"PickListService\/GetPages","getFirstLevelItemsMethod":"PickListService\/GetPages","getTreeForItemMethod":"PickListService\/GetTreePathForPage","parameters":[],"rootId":"Root-11111","searchMethod":"PickListService\/SearchPages","serviceRoot":"InternalServices"},"sortAscendingButtonTitle":"A-Z","sortAscendingButtonTooltip":"Sort in ascending order","sortDescendingButtonTooltip":"Sort in descending order","unsortedOrderButtonTooltip":"Remove sorting"}, {});"...ectedItemExpandTooltip":"Click to expand","selectedItemSelector":".selected-item...
TypeError: dnn.controls is undefined

implying a jquery load error. or duplication

Reviewing the web.config file, again. I found that to convert a DNN6 site to DNN7 that the section to be commented out was

<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
</dependentAssembly>
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
</dependentAssembly>

Making the section of the web.config file as below:

<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<!--
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
-->
</dependentAssembly>
<dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
<!--
<assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
-->
</dependentAssembly>

The update from DNN 6.2.8 to DNN 7.0.2 then proceeded OK.