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.
- Make sure that you have uninstalled the software described in
Compatibility with Previous Releases - Make sure you have installed the combined Visual Studio 2008 and .NET Framework
3.5 Service Pack 1 release. - Start Visual Studio 2008 Service Pack 1 and open the existing Dynamic Data application.
- Change all references of System.Web.Extensions,
Version=3.6.0.0 to System.Web.Extensions, Version=3.5.0.0. - Remove the following configuration section:<section name="dynamicData" type="System.Web.DynamicData.DynamicDataControlsSection"
requirePermission="false" allowDefinition="MachineToApplication"/> - 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"/> - In the <assemblies> element, remove
the following item:<add assembly="System.Web.DynamicData, Version=3.6.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> - 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"/> - 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"/> - 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"/> - 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"/> - Remove the <dynamicData> configuration
section. - In the <runtime> section, replace the following section:<runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"></runtime><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></assemblyBinding><assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-3.5.0.0" newVersion="3.6.0.0"/></dependentAssembly>
With the following section:
<runtime><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"></runtime><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></assemblyBinding><assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/><bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
No comments:
Post a Comment