none
Convert ASP.net 2.0 to Latest Version ,should convert ASP.net 4.5 or ASP.net 5? with less changes RRS feed

  • Question

  • HI,

        Could you please let  us  know which  asp.net latest version(5,4.5,4.6) should   used to convert asp.net 2.0 application 

    & also which IDE is pefer VS2012 or VS2015

    Thank you!

    Ashfaq Hussain 



    Thursday, October 13, 2016 2:34 PM

Answers

  • Hi Ashafaq,

    Welcome to the MSDN forum.

    Since you want to downgrade a higher ASP.NET version to the lower ASP.NET version, if you are not used any of the namespace or feature which is not available in 2.0, you can go open the project and right click the project name, select the Properties, under ‘Application’ tab and change the ‘Target framework’ to ‘2.0’.

    If not, please have a look at this similar issue and have a try with the following:

    Zizhouye Chen:

    1. Change the TargetFramework setting in application properties to .NET 2.0(There maybe prompt some alert dialog, Click Yes) in Visual Studio.

    2. If you compile the application you will get some exceptions such as "namespace or type does not exist". Try to find all the namespace that only can be used in .NET 3.5 or 4.0 and Remove the dll reference. If you use these dll in your code. Maybe you should re-design your code or use the earlier version such as ajax control toolkit.

    3. Regarding web.config file. I would create a new web.config file in this application and copy other settings from the old file. And then delete the old one.

    4. Re-compile the application and see if there is an error remain and work through it.

    If the downgrade still failed, since your project is ASP.NET and our forum is to discuss the setup pf the .NET Framework, I recommend you go to the appropriate forum: https://forums.asp.net/15.aspx/1?Getting+Started for dedicated information, thank you for your understanding.

    Best regards,

    Sara


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.


    Friday, October 14, 2016 5:27 AM
    Moderator