Solved

uninstalling .net 4.0 and having  .NET Framework 4.6.1 instead

Posted on 2016-09-30
3
113 Views
Last Modified: 2016-10-09
Hi;

I am maintaining a web application which is compiled in 4.0 and it is under IIS 7.5. In the machine, i can see 4.6.1 is in place.

In the application pool, I saw .NET 4.0 is selected but it is not clear for me whether it is using 4.6.1 or 4.0 after seeing this http://forums.asp.net/t/2068374.aspx?Is+IIS+7+5+capable+of+hosting+applications+targeting+NET+Framework+4+6+

My issue is that admins will be uninstalling 4.0, 4.5 and 4.5.1 since the EOL period for them is approaching and plans to keep 4.6.1

My first question is that is my application really running on 4.6.1 (since it is not clear for me on IIS) or on 4.0?

My second question is that if .NET 4.0 is uninstalled from the server environment, does this mean the binaries compiled in 4.0 will break?

Br.
0
Comment
Question by:jazzIIIlove
  • 2
3 Comments
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 41824434
don't uninstall just ensure that an updated version is installed.
https://blogs.msdn.microsoft.com/dotnet/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1/
check the value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full \Release
378389       .NET Framework 4.5
378675       .NET Framework 4.5.1 installed with Windows 8.1
378758       .NET Framework 4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2
379893       .NET Framework 4.5.2
393295 (Windows 10) or 393297 (All other OS versions)       .NET Framework 4.6
394254 (Windows 10) or 394271 (All other OS versions)       .NET Framework 4.6.1

.net 4.x.x are backward compatible to earlier versions of .net 4.x.x
1
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 41825817
Hi;

.NET Framework 4.6.1 will be installed before uninstalling 4.0. Is it still safe? All the binaries are compiled with 4.0. Would it work just fine?

Br.
0
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 41825822
I would reverse the order uninstall 4.0 and install 4.6.1 or you risk breaking .net
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question