• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 47
  • Last Modified:

Migrating an asp.net app using .net framework 4.0 to 4.5 using Visual Studio 2017

What are the steps to migrate an asp.net app using .net framework 4.0 to 4.5 using Visual Studio 2017?
Ray Turner
Ray Turner
  • 2
2 Solutions
If you want to configure your app to run on the .NET Framework 4.5, add the < supportedRuntime> tag to the application configuration file:
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>

Open in new window

Tapan PattanaikSenior EngineerCommented:
Hi Ray Turner,

steps to migrate an asp.net app using .net framework 4.0 to 4.5 :

Locate configuration file for the .NET Framework project. and  add <supportedRuntime> element  to the application configuration file

Configure an App to Support .NET Framework 4 or 4.5


Migration Guide to the .NET Framework:

Ray TurnerSenior ConsultantAuthor Commented:
Ray TurnerSenior ConsultantAuthor Commented:
One more questions.  So do I need the following lines of code?  Do I need to change all 4.0 references to 4.5?

            <compilation debug="false" strict="false" explicit="true" targetFramework="4.0">
                        <add assembly="System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Web, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Xml, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Configuration, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Drawing, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Data, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Data.Linq, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                        <add assembly="System.Net, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                        <add assembly="System.Web.Entity, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now