none
Refering v3.5 of System.Web.Extension and System.Web.Extension.Design on a .net 2.0 wesite. RRS feed

  • Question

  • Hi

    I have a we site build on frame work 2.0 running on server 2003. Now i have to migrate it to 2008 server. The website has reference to v1.0.61025.0  of System.Web.Extension and System.Web.Extension.Design. To make them work with 2008 server ( with no 1.0 dlls in GAC) i have put the dlls in bin folder. But i have been adviced to refer the v3.5 of the the dlls in 2.0 project.

    This gave me lot of amiguous reference erros and many design errors. Is there any way to safly over ride this errors with out affecting other componets like Ajax.

    Thanks in Advace

    Nithin


    Nithin

    Tuesday, August 6, 2013 5:40 PM

Answers

  • v3.5 runs on the v2 CLR so there should be no problems with using the v3.5 assemblies.  In fact it is the correct approach over using v1.0.  You should change your project to target .NET 3.5.  You'll need to go through the process of verifying your code but there was little change between v2 and v3.5 outside of WPF and WCF.  In fact the core assemblies are still v2.  Of course you will need to fix any breaking changes that were introduced in the newer Extensions assembly but that is unavoidable either way.  Simply pointing the runtime to the newer version is going to cause the same issues.

    Be sure that when you change the target framework that the reference to Extensions updates to the version that shipped with v3.5 and not an older version.  You may need to manually remove the reference, add the correct version in and then go into your web.config and fix up the references to it that ASP.NET would have put in.  The web.config will still most likely be pointing to the older version.

    Please post ASP.NET questions in the ASP.NET forums (http://forums.asp.net).

    Michael Taylor
    http://msmvps.com/blogs/p3net

    Tuesday, August 6, 2013 6:40 PM
    Moderator