{"id":2193,"date":"2015-04-22T14:57:23","date_gmt":"2015-04-22T14:57:23","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2193"},"modified":"2015-04-22T14:57:23","modified_gmt":"2015-04-22T14:57:23","slug":"iis7-deployment-duplicate-system-web-extensionsscriptingscriptresourcehandler-section","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/04\/22\/iis7-deployment-duplicate-system-web-extensionsscriptingscriptresourcehandler-section\/","title":{"rendered":"IIS7 deployment &#8211; duplicate &#8216;system.web.extensions\/scripting\/scriptResourceHandler&#8217; section"},"content":{"rendered":"<p>The solution for me was to change the .NET framework version in the Application Pools from v4.0 to v2.0 for the Default App Pool:<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/04\/apppool.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2015\/04\/apppool.png\" alt=\"apppool\" width=\"1196\" height=\"498\" class=\"alignnone size-full wp-image-2194\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/04\/apppool.png 1196w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/04\/apppool-300x125.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/04\/apppool-1024x426.png 1024w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2015\/04\/apppool-768x320.png 768w\" sizes=\"auto, (max-width: 1196px) 100vw, 1196px\" \/><\/a><\/p>\n<p> 21<br \/>\ndown vote<\/p>\n<p>If, like me, you need to target v4 but can only build with .net 3.5, follow the instruction here. Just replace in your web.config the whole content of the <configSections> with:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&lt;configSections&gt;\n&lt;sectionGroup name=&quot;system.web.extensions&quot; type=&quot;System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;\n  &lt;sectionGroup name=&quot;scripting&quot; type=&quot;System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;\n    &lt;section name=&quot;scriptResourceHandler&quot; type=&quot;System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;\/&gt;\n    &lt;sectionGroup name=&quot;webServices&quot; type=&quot;System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions,  Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot;&gt;\n      &lt;section name=&quot;jsonSerialization&quot; type=&quot;System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;Everywhere&quot;\/&gt;\n      &lt;section name=&quot;profileService&quot; type=&quot;System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;\/&gt;\n      &lt;section name=&quot;authenticationService&quot; type=&quot;System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;\/&gt;\n      &lt;section name=&quot;roleService&quot; type=&quot;System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; requirePermission=&quot;false&quot; allowDefinition=&quot;MachineToApplication&quot;\/&gt;\n    &lt;\/sectionGroup&gt;\n  &lt;\/sectionGroup&gt;\n&lt;\/sectionGroup&gt;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The solution for me was to change the .NET framework version in the Application Pools from v4.0 to v2.0 for the Default App Pool: 21 down vote If, like me, you need to target v4 but can only build with .net 3.5, follow the instruction here. Just replace in your web.config the whole content of &#8230; <a title=\"IIS7 deployment &#8211; duplicate &#8216;system.web.extensions\/scripting\/scriptResourceHandler&#8217; section\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/04\/22\/iis7-deployment-duplicate-system-web-extensionsscriptingscriptresourcehandler-section\/\" aria-label=\"Read more about IIS7 deployment &#8211; duplicate &#8216;system.web.extensions\/scripting\/scriptResourceHandler&#8217; section\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,125,127],"tags":[],"class_list":["post-2193","post","type-post","status-publish","format-standard","hentry","category-windows-2008-server","category-windows-2012-server","category-winserv"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2193"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2193\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}