Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Morten K. J. 23 posts 64 karma points
    Jul 13, 2011 @ 14:51
    Morten K. J.
    0

    Install/setup 4.0.3 on IIS 7.5

    I have an old site in 4.0.3 which I need to setup on IIS 7.5

    I am stuck with the following errror (translated from Danish): "There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined"

    I have tried to comment it out which results in 4 more similar errors. When all of those are commented out, I am left with the error (translated from Danish):

    The method 'get_EnableCdn' of type 'System.Web.UI.ScriptManager' from the assembly'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not implemented.

    Any idea how to solve the problem??

  • Morten K. J. 23 posts 64 karma points
    Jul 13, 2011 @ 15:01
    Morten K. J.
    0

    Apparently I solved the problem by switching the App_Pool target to .Net 2.0 and undoing the commenting out of the 5 lines.

    But I would very much like to extend the site with new functionality from .Net 4.0. So how do I get the site to run under .Net 4.0?

  • Morten K. J. 23 posts 64 karma points
    Jul 14, 2011 @ 11:07
    Morten K. J.
    0

    It seems like I got the application to run under .Net 4.0 by changing the following lines from

      <!-- Ajax 1.0 Compatibility -->

      <runtime>

        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>

            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>

            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>

          </dependentAssembly>

        </assemblyBinding>

      </runtime>

    to

    <!-- Ajax 1.0 Compatibility -->

      <runtime>

        <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>

            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>

          </dependentAssembly>

          <dependentAssembly>

            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>

            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>

          </dependentAssembly>

        </assemblyBinding>

      </runtime>

     

    The only difference is adding appliesTo="v2.0.50727" in the 3rd line. The lines commented out in the beginning of this thread are NOT commented out in the final solution.

Please Sign in or register to post replies

Write your reply to:

Draft