Solved

uninstalling .net 4.0 and having  .NET Framework 4.6.1 instead

Posted on 2016-09-30
3
136 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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