locked
After installing .Net 4.5.1 framework does not appear in registry Server 2008 R2, or IIS App Pools, etc. RRS feed

  • Question

  • User2083199410 posted

    Hello,

    I am running Web Apps on a Windows Server 2008 R2 I have attempted several times now to install the .Net Framework 4.5.1.

    However, the 4.5.1 Framework is still not available.  I understand that it is "in place" in the 4.0 folder, etc.  However, the following are indications that it is not installed properly:

    1 - It does not appear in the Registry at HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> .NETFramework -> [the highest framework still listed as "v4.0.30319"]

    2 - It does not appear in the Registry at HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> NET Framework Setup -> NDP ->  -> [the highest framework still listed as "v4.0"] -> Client -> Version [again, the highest framework still listed as "v4.0.0.0"]

    3 - If I try to register .Net after an install/repair using "aspnet_regiis -I" inside the 4.0 Framework root folder, .Net 4.5 still does not show up as an Application Pool option.

    4 - I have attempt to manually set .Net 4.5 as the App Pool framework via the "appcmd", and it does show "4.5", however it does not work and shuts down the App Pool (obviously because it doesn't see the Framework as on the server, etc.).

    5 - I've also tried the Framework Repair tool, still no results:  https://support.microsoft.com/en-us/kb/2698555

    6 - Even when I run "aspnet_regiis -lv", to list all recognized installed versions, 4.5.1 is not listed - the highest listed remains 4.0.30319.0.

    7 - In IIS, the only Frameworks available to select from are ".NET Framework v2.0.50727" and ".NET Framework v4.0.30319" - there is no option listed for 4.5.x.  Should there be?  I am trying to test something that requires 4.5.1, and this test is failing, which seems to confirm that the 4.5.1 framework is not successfully being referenced.

    How exactly do we ensure that .Net 4.5.1 is correctly installed and Available?

    Wednesday, March 18, 2015 2:55 PM

Answers

  • User2083199410 posted

    Okay, this article helped even more:

    https://msdn.microsoft.com/en-us/library/hh925567(v=vs.110).aspx

    So, this does indicate that I have 4.5.2 installed, however I can see no updated versions of the dlls and I still cannot target the 4.5.2 framework for our Web App.

    For instance, if I open the Property Pages for the site, and under the "Build" section, the Target Framework lists only as high as 4.0.3, but 4.5.x is not available.

    Now I'm wondering if the problem is that our Web Site is simply not referencing the latest 4.5.x dlls.

    So how do we do that?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 20, 2015 9:56 AM
  • User2083199410 posted

    Okay, so this is frustrating, but it seems I've found my answer.

    We are running a .Net 4 Web Forms web site built with VS 2010 on a Windows Server 2008 R2.

    Despite all this, we cannot utilize .Net 4.5.x unless we at least upgrade to VS 2012 or later.  I'm willing to be there is a hack to allow .Net 4.5.x to work with VS 2010 and/or IIS 7.5, but I can't find one and it may better to just go with an upgrade anyhow. 

    Answers here (an involved hack is detailed in the first link after the checked answer):

    http://stackoverflow.com/questions/12390175/targeting-net-framework-4-5-via-visual-studio-2010

    http://stackoverflow.com/questions/23617900/how-to-select-net-4-5-2-as-a-target-framework-in-visual-studio

    This is very frustrating that it is not clearer.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 20, 2015 10:14 AM

All replies

  • User-824764785 posted

    you need to register IIS with .net framework, run this command in .net command prompt aspnet_regiis -i

    more details are here:- http://weblogs.asp.net/owscott/ASPNet_5F00_regiis.exe-tool_2C00_-setting-the-default-version-without-forcing-an-upgrade-on-all-sites

    As you said its showing 4.0, than its good... its a bug or limitation that 2.0 and 3.5 are shown as 2.0, whereas 4.0 and 4.5 are displayed as 4.0 only

    Wednesday, March 18, 2015 3:02 PM
  • User2083199410 posted

    Uh, yes, per my comment #3, I have tried to register the framework repeatedly.  No results.  4.5.1 remains un-registered and unrecognized.

    Wednesday, March 18, 2015 3:26 PM
  • User-824764785 posted

    4.5 does not appear as an Application Pool, I'm also using 4.5.1 on my dedicated server and it only shows 4.0 application pool

    Wednesday, March 18, 2015 3:41 PM
  • User2083199410 posted

    Okay, let me help you some more.

    1 - I know this is not working because some specific 4.5.1 functionality is missing

    2 - Per Pt. #6 in my post, 4.5.1 is not even listed as an installed Framework.  I know the update is supposed to be "inline" and all that, but there must be some proof that it all installed correctly.

    3 - Again, after I run the Framework Repair tool from Microsoft, it suggests I should reinstall 4.5.1, which suggests there was something wrong with the install.

    I suppose I could uninstall all Framework versions and just install 4.5.1 and see what happens then.

    Wednesday, March 18, 2015 3:51 PM
  • User-824764785 posted
    Yes please reinstall it and restart the server
    Wednesday, March 18, 2015 4:16 PM
  • User-1716253493 posted

    In app pool option you only can choose one of clr versions (1.0, 1.1, 2.0, or 4)

    See this : https://msdn.microsoft.com/en-us/library/8bs2ecf4(v=vs.110).aspx

    Wednesday, March 18, 2015 9:40 PM
  • User2083199410 posted

    Yes, I've stated as much.  However, there is no good evidence that 4.5.1 was successfully installed.  I am not seeing the expected behavior if it was installed. 

    Thursday, March 19, 2015 9:19 AM
  • Friday, March 20, 2015 3:00 AM
  • User2083199410 posted

    Okay, this article helped even more:

    https://msdn.microsoft.com/en-us/library/hh925567(v=vs.110).aspx

    So, this does indicate that I have 4.5.2 installed, however I can see no updated versions of the dlls and I still cannot target the 4.5.2 framework for our Web App.

    For instance, if I open the Property Pages for the site, and under the "Build" section, the Target Framework lists only as high as 4.0.3, but 4.5.x is not available.

    Now I'm wondering if the problem is that our Web Site is simply not referencing the latest 4.5.x dlls.

    So how do we do that?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 20, 2015 9:56 AM
  • User2083199410 posted

    Okay, so this is frustrating, but it seems I've found my answer.

    We are running a .Net 4 Web Forms web site built with VS 2010 on a Windows Server 2008 R2.

    Despite all this, we cannot utilize .Net 4.5.x unless we at least upgrade to VS 2012 or later.  I'm willing to be there is a hack to allow .Net 4.5.x to work with VS 2010 and/or IIS 7.5, but I can't find one and it may better to just go with an upgrade anyhow. 

    Answers here (an involved hack is detailed in the first link after the checked answer):

    http://stackoverflow.com/questions/12390175/targeting-net-framework-4-5-via-visual-studio-2010

    http://stackoverflow.com/questions/23617900/how-to-select-net-4-5-2-as-a-target-framework-in-visual-studio

    This is very frustrating that it is not clearer.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 20, 2015 10:14 AM