You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5.


While trying to install Visual Studio 2008 on a Windows 2008 R2 machine you may get the following error.


You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5.


This is because Windows 2008 R2 ships with the .NET 3.5.1 framework. You just need to enable the feature from Server Manager.


vs2k8win2k8r2sm


So before starting the Visual Studio 2008 Setup install the .NET Framework 3.5.1 Features from the Add Features Wizard in Server Manager.


After that when you run the Visual Studio 2008 Setup, the installer will detect that the 3.5 framework is already installed and skip to the next step.


Bookmark and Share

Comments (68)

  1. Excellent assistance with this one

  2. Nate Bruneau says:

    You can also use powershell cmdlets to install .NET 3.5.1

    import-module ServerManager

    Get-command -module ServerManager

    CommandType     Name

    ———–     —-

    Cmdlet          Add-WindowsFeature

    Cmdlet          Get-WindowsFeature

    Cmdlet          Remove-WindowsFeature

    Get-WindowsFeature *NET*

    Add-WindowsFeature AS-NET-Framework

  3. leafy says:

    Cool!

    I’m confused by this error message for about half hour…

  4. Steve Lessard says:

    Another command you can use (without PowerShell) to install .NET 3.5 SP1 on Server 2008 R2 is this:

    %windir%system32ocsetup.exe NetFx3

  5. justin says:

    does anyone else get annoyed by the guy in the photo above when you’re installing visual studio?

  6. Seb says:

    thanks for the good instructions!

  7. Dim says:

    Thank you for the helpful instructions

    @justin

    I nearly felt offended by the way that guy looks at me.

  8. Tim says:

    They should include that one little bit of information that it is in Features with the error message. Don’t want to make it too easy I guess.

  9. changhoon.Jeong says:

    Thanks for your help. good source!

  10. Lili says:

    Muchas gracias! de gran ayuda!..saludos

  11. anuja says:

    i got this url on single click. quite helpful.

  12. Kim says:

    Thanks for your help. good source!

  13. Rose says:

    Using cmdlet command to install .NET 3.5, I got this errors:

    PS U:> Add-WindowsFeature AS-NET-Framework

    Add-WindowsFeature : Installation of [.NET Framework 3.5.1 Features] .NET Framework 3.5.1 failed. Attempt to install .N

    ET Framework 3.5.1 failed with error code 0x80070643.  Fatal error during installation

    At line:1 char:19

    + Add-WindowsFeature <<<<  AS-NET-Framework

       + CategoryInfo          : OperationStopped: (:) [Add-WindowsFeature], Exception

       + FullyQualifiedErrorId : FeatureMessageDetail,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

    Add-WindowsFeature : Installation of [Windows Process Activation Service] Configuration APIs failed. Attempt to install

    Configuration APIs failed with error code 0x80070643.  Fatal error during installation

    At line:1 char:19

    + Add-WindowsFeature <<<<  AS-NET-Framework

       + CategoryInfo          : OperationStopped: (:) [Add-WindowsFeature], Exception

       + FullyQualifiedErrorId : FeatureMessageDetail,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

    Add-WindowsFeature : Installation of [Windows Process Activation Service] .NET Environment failed. Attempt to install .

    NET Environment failed with error code 0x80070643.  Fatal error during installation

    At line:1 char:19

    + Add-WindowsFeature <<<<  AS-NET-Framework

       + CategoryInfo          : OperationStopped: (:) [Add-WindowsFeature], Exception

       + FullyQualifiedErrorId : FeatureMessageDetail,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

    Add-WindowsFeature : Installation of [Windows Process Activation Service] Process Model failed. Attempt to install Proc

    ess Model failed with error code 0x80070643.  Fatal error during installation

    At line:1 char:19

    + Add-WindowsFeature <<<<  AS-NET-Framework

       + CategoryInfo          : OperationStopped: (:) [Add-WindowsFeature], Exception

       + FullyQualifiedErrorId : FeatureMessageDetail,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

    Add-WindowsFeature : Installation of [Application Server] .NET Framework 3.5.1 failed. Installation failed because a re

    quired role service or feature could not be installed.

    At line:1 char:19

    + Add-WindowsFeature <<<<  AS-NET-Framework

       + CategoryInfo          : OperationStopped: (:) [Add-WindowsFeature], Exception

       + FullyQualifiedErrorId : FeatureMessageDetail,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

  14. Greg says:

    Thanks for the info.  I’m trying to install Forefront TMG and ran into this error right at the start of setup.  Once I install .NET 3.5 the install ran fine.

  15. Rick says:

    It never ceases to amaze me how an enterprise like Microsoft, can’t get it’s own products right, why isn’t this a normal part of the installation prerequisites? It’s like starting a Rolls Royce with battery support from the lawnmower. And it’s a very cryptic message, it’s a feature, not a role!

  16. Vince Z. says:

    I Googled the error msg and ended up here.  Thank you!

  17. thanks says:

    First result on google, thanks.  Couldn’t figure this one out without ya!

  18. digish says:

    thanks for blogging this. I was getting stuck in the path.

  19. Serg says:

    Very Helpful, thank you! I was really puzzled with this error.

  20. kiran says:

    thanks.

  21. Pj says:

    Thank you very much

  22. Carlos says:

    Muchisimas gracias vijaysk !!

  23. linux user says:

    lame.. what if I don't want the vulnerabilities of an IIS server running on my network but need the .net…

  24. Tony Ferrer says:

    Great explanation and easy to understand.

    Thanks

  25. es says:

    nice,,, god… a hour for this trouble, 🙂

  26. david says:

    Microsoft is so faulty, bloated and insecure that I hate the thought of using their products

  27. Wendel Soares says:

    Tks

    Muito Obrigado – SP – Brasil

  28. NCrit=RUS= says:

    Thanks, i was looking for this buton for quite a lot of time

  29. Naresh Mittal says:

    Image the life without such help from the internet!! Will struggle for days and even then would not get anywhere. I guess the system need to be designed smart enough to guide us through such issues.

  30. Sonu says:

    It is really very helpful,,,

    Thanks ideed

  31. Sonu says:

    It is really very helpful,,,

    Thanks ideed

  32. Steven Kelly says:

    Concise and to the point – very simple instructions with clear screen shots.

    Works similarly when trying to install SQL Server 2008.

    Well done and thank you.

  33. maya says:

    thanks a ton!wz breakin my head with the add feature wizard for quite sometime till i found this:)

  34. Aryan Nava says:

    It was really helpful. Thanks for your tips

    virtualizesharepoint.com

  35. Andy says:

    Definitely a clear and helpful post.  Thanks!

  36. amirtha says:

    Thanks a lot, I was strugling to get these kind of clear info. Many thanks again

  37. aaarghhh says:

    yet another bullshit-feature that no one needs, but disturbs many install procedures

  38. Mike G. says:

    Thanks!  Just what I needed!  Worked perfect!

  39. sojib2bd says:

    it's works

    sojib2bd

    http://sojib2bd.com

  40. Yos says:

    I have remove the feature, and instal again and the system returns the same message. I only want to Instal framework 3.5 i have already the vs 2010

  41. Nolan Kidd says:

    This certainly helped me.

    I've been looking around all over the net until I met this page.

    Love you the author ^_^

  42. Mohammad Iqubal says:

    Thank you for your post!

    It helped me install .Net Fx 3.5 on my Win8 Server R2.

  43. Murali Gurram says:

    Excellent !!! this helped me lot !!!

  44. SK says:

    Thanks for the post! It was helpful 🙂

  45. Marcus Flemmingston says:

    It is a good help thanks.  I prefer english cheese to dutch.

  46. EaZy Balugas says:

    thank you very much! This is so helpful.

  47. Valentino Vranken says:

    Thanks for posting Shinva!  I encountered this error message while trying to install the 3.5 SP1 framework on Windows Server 2008 R2 because it was required by the installation of Denali.  Not being a sysadmin, I found this a rather cryptic message, especially because you don't need to open a tool called "Role Manager" but you need the Server Manager instead.

    Oh well, problem solved!

    Best Regards,

    Valentino – http://blog.hoegaerden.be

  48. Lena says:

    I found it to be helpful as I hit the exact error while installing Visual Studio 2008

  49. Robson says:

    Great explanation for dummies like me. Tks.

  50. Dayakar.Battini says:

    Thanks for the information, keep it up.

  51. Jesse The Brain says:

    On Steve Jobs one can find a quote that applies perfectly here: " How much dummer can Microsft get" ?????

  52. Phillip says:

    You sir are direct and to the point with instructions. Awesome JOB! Really appreciate this.

  53. Sachin Dravid says:

    Excillent!!!! Simple, effective..

    Thank you very much!!!!

  54. Sreenivas says:

    Good one. Thanks for your knowledge share.

  55. Thanks says:

    Thanks, was looking in roles for ages and didn't think to look in "features"

  56. Sidhu says:

    Thanks for the help.

    Nice assistance.

  57. Bobby Khan says:

    Now is the time to take action and make money. Be your own boss with http://www.PleasureBuilder.com

  58. Jennifer says:

    Perfect help!  I was checking all through the roles options like so many others in your comments.  

    Thanks so much for posting!  

  59. Sebastian Götz says:

    Thank you very much. That saved me a lot of time during SQLServer 2012 installation on Windows Server 2008 R2.

  60. Gregg says:

    Thanks.  This was the easiest fix I have ever found.

  61. bryam says:

    tan simple y yo haciendome problemas… gracias

  62. Sherif says:

    Dear  am  instaling exchange server 2010 on server 2008r2 and faced the same problem and the mark exist and problem exists 🙁

  63. HGW says:

    Thanks a lot! I tried to install .net 3 by hand and got always the error message.  

  64. SeriouslyThisIsMoronic says:

    It takes a Microsoft product to not only fail to permit this install via the normal routes, but to give you an error directing you to the "Role Manager" where you actually have to click on "Features" instead of "Roles" to find this… Kind of like you can't log in as an Administrator to be Administrator. You have to first give Administrator the Administrator privileges to act as the Administrator. Derp!!!

    The fact that a blog post exists explaining where to find the place to install something this trivial is a conclusive mark of UI failure on your part, Redmond. Stop being dumb, please. Earth will thank you.

  65. Paul G says:

    Straight and to the point – works a charm. Thanks

  66. Hesitha says:

    Thanks for the valuable info. That was very helpful.

  67. Burt Steele says:

    I was trying to install .NET 2 on my Server 2008 R2 and was getting this error. According to this guy:

    http://www.itsupportforum.net/…/how-to-install-dotnet-2-on-server-2008-r2

    .NET 3.5 installed in the way you recommend contains .NET 2.0 because it's backwards compatible… So that might be useful for someone.

  68. Kuriakose Varghese says:

    Excellent, Good that worked for me.