none
.NET Framework upgrade from 2.0 to 4.0 RRS feed

  • Question

  • Our application heavily customized, would like to check how is the backward compatibility with .Net framework 4.0.  Should i expect lot of things to change while upgrading (From .NET 2.0 to 4.0)?  I read some documentation, sounds like not many things need to be updated. 

    Our application heavily consumes web services that are created in Java.  Using MS Sharepoint for the workflow.  Front end was built using Infragistics.  Infragistics is upgraded to the latest version, so should not be a problem.

    Details:
    ASP.NET application runs on IIS 6.0; Oracle backend (but majority of the data is pulled from Java Webservices, Not much direct access from Oracle);
    VS 2008

    Any resources to the changes I need to make will be helpful.  Thank you,

    Monday, August 9, 2010 3:17 PM

Answers

  • Let's start with your IDE. VS 2008 cannot target .NET Framework 4.0, so VS 2010 is required.

    VS 2010 can target .NET 2.0, 3.0, 3.5 or 4.0, so you will be able to open your existing solution in VS 2010 and let the upgrade wizard convert it to a VS 2010 solution and/or tell you where the issues are. I recommend that you do the conversion with a *copy* of your solution, as there is no easy way to "downgrade" it back to VS 2008, and once converted, it cannot be opened in VS 2008.

    You can get a free trial of VS 2010 here:

    http://www.microsoft.com/visualstudio/en-us/download

    Your IIS web server will also have to be configured to support .NET 4.0, but you probably already knew that.

    I think the best way to find out what's involved in uprading your app to .NET 4.0 is to do the above, then test.

     

    • Marked as answer by YiChun Chen Monday, August 16, 2010 5:47 AM
    Monday, August 9, 2010 3:49 PM
  • Hi Mdsuser,

    Based on your description, it looks like that you want to upgrade the existing .NET 2.0 ASP.NET application to target .NET 4.0.

    For the upgrading, here are some points that we might need to focus on:

    Point 1:

    As we know, the .NET Framework has two main components: the common language runtime (CLR) and the .NET Framework class library. The common language runtime is the foundation of the .NET Framework.
    .NET Framework 2.0 uses CLR version 2.0 when .NET framework 4.0 uses v4.0. The CLR version is different. Thus, we might need to do some changes of the existing program like source code to make it work properly on .NET 4.0.

    Point 2:

    Pvdg42 has posted good suggestion. Visual Studio 2010 is the good tool for you to do the upgrading.

    By default, Visual Studio 2010 includes only the .NET Framework 4 during the installation. To apply Visual Studio 2010 with other .NET Framework like .NET 2.0, 3.0 and 3.5, we need have these .NET Frameworks installed and upgrade .NET Framework 3.5 to SP1 on the development machine.

    It would be better that you can upgrade the existing .NET 2.0 application to .NET 4.0 and test it in Visual Studio 2010. Before the conversion, please remember to back up your project in case of any problem in the future.

    Point 3:

    If you have any concern during the upgrading of your ASP.NET application, it is recomended that you can post your thread on ASP.NET Forum. You will get more useful help there.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Monday, August 16, 2010 5:47 AM
    Tuesday, August 10, 2010 6:58 AM

All replies

  • Let's start with your IDE. VS 2008 cannot target .NET Framework 4.0, so VS 2010 is required.

    VS 2010 can target .NET 2.0, 3.0, 3.5 or 4.0, so you will be able to open your existing solution in VS 2010 and let the upgrade wizard convert it to a VS 2010 solution and/or tell you where the issues are. I recommend that you do the conversion with a *copy* of your solution, as there is no easy way to "downgrade" it back to VS 2008, and once converted, it cannot be opened in VS 2008.

    You can get a free trial of VS 2010 here:

    http://www.microsoft.com/visualstudio/en-us/download

    Your IIS web server will also have to be configured to support .NET 4.0, but you probably already knew that.

    I think the best way to find out what's involved in uprading your app to .NET 4.0 is to do the above, then test.

     

    • Marked as answer by YiChun Chen Monday, August 16, 2010 5:47 AM
    Monday, August 9, 2010 3:49 PM
  • Hi Mdsuser,

    Based on your description, it looks like that you want to upgrade the existing .NET 2.0 ASP.NET application to target .NET 4.0.

    For the upgrading, here are some points that we might need to focus on:

    Point 1:

    As we know, the .NET Framework has two main components: the common language runtime (CLR) and the .NET Framework class library. The common language runtime is the foundation of the .NET Framework.
    .NET Framework 2.0 uses CLR version 2.0 when .NET framework 4.0 uses v4.0. The CLR version is different. Thus, we might need to do some changes of the existing program like source code to make it work properly on .NET 4.0.

    Point 2:

    Pvdg42 has posted good suggestion. Visual Studio 2010 is the good tool for you to do the upgrading.

    By default, Visual Studio 2010 includes only the .NET Framework 4 during the installation. To apply Visual Studio 2010 with other .NET Framework like .NET 2.0, 3.0 and 3.5, we need have these .NET Frameworks installed and upgrade .NET Framework 3.5 to SP1 on the development machine.

    It would be better that you can upgrade the existing .NET 2.0 application to .NET 4.0 and test it in Visual Studio 2010. Before the conversion, please remember to back up your project in case of any problem in the future.

    Point 3:

    If you have any concern during the upgrading of your ASP.NET application, it is recomended that you can post your thread on ASP.NET Forum. You will get more useful help there.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Monday, August 16, 2010 5:47 AM
    Tuesday, August 10, 2010 6:58 AM
  • Hi Mdsuser,

    I'm writing to follow up the post. Does the above suggestion work?

    Please feel free to let me know if you need any help.

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Thursday, August 12, 2010 8:30 AM
  • Hi Mdsuser,

    I've marked Pvdg42's and my reply as answer. If you have any concern, please feel free to let me know.

    Have a nice week!

    Best regards,
    Yichun Chen
    MSDN Subscriber Support in Forum
    If you have any feedback on our support, please contact msdnmg@microsoft.com
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, August 16, 2010 5:47 AM