Friday, September 26, 2008

System.Web.Extensions 3.6.0.0 change in .Net 3.5 Framework Service Pack 1 Release

Reference: www.asp.net

The following steps describe changes that you must make in the Web.config file in order to change a Dynamic Data Web site created with the December CTP release to work with the .NET 3.5 Service Pack 1 release.
  1. Make sure that you have uninstalled the software described in
    Compatibility with Previous Releases

  2. Make sure you have installed the combined Visual Studio 2008 and .NET Framework
    3.5 Service Pack 1 release.

  3. Start Visual Studio 2008 Service Pack 1 and open the existing Dynamic Data application.

  4. Change all references of System.Web.Extensions,
    Version=3.6.0.0
    to System.Web.Extensions, Version=3.5.0.0.

  5. Remove the following configuration section:
    <section name="dynamicData" type="System.Web.DynamicData.DynamicDataControlsSection"
    requirePermission="false" allowDefinition="MachineToApplication"/>

  6. In the <assemblies> element, add the
    following elements:
    <add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.ComponentModel.DataAnnotations, Version=3.5.0.0, Culture=neutral,
    PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Web.DynamicData,
    Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  7. In the <assemblies> element, remove
    the following item:
    <add assembly="System.Web.DynamicData, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  8. In the <controls> section, remove
    the following elements:
    <add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.Extensions,
    Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add
    tagPrefix="asp" tagName="DynamicFilter" src="~/App_Shared/DynamicDataFields/FilterUserControl.ascx"/>
  9. In the <controls> section, add the
    following element:
    <add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData,
    Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  10. In the <httpModules> section, remove
    the following elements:
    <add name="DynamicDataModule" type="System.Web.DynamicData.DynamicDataHttpModule,
    System.Web.Extensions, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add name="UrlRoutingModule" type="System.Web.Mvc.UrlRoutingModule, System.Web.Extensions,
    Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  11. In the <httpModules> section, add
    the following entry:
    <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing,Version=3.5.0.0,
    Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

  12. Remove the <dynamicData> configuration
    section.

  13. In the <runtime> section, replace the following section:
    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-3.5.0.0" newVersion="3.6.0.0"/>
    </dependentAssembly>
    <dependentAssembly>
    <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
    <bindingRedirect oldVersion="1.0.0.0-3.5.0.0" newVersion="3.6.0.0"/>
    </dependentAssembly>
    </assemblyBinding>
    </runtime>

    With the following section:
    <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>


No comments: