How to install .NET Framework 3.5 on Windows Server 2012 and Windows Server 2012 R2

If you have an application that you want to run on Windows Server 2012 that requires the .NET Framework 3.5, you will most likely run in to a problem when trying to install it. If you are trying to install .NET Framework 3.5 from the Server Manager GUI, you will see this when installing the feature:

“Do you want to specify an alternate source path? One or more installation selections are missing source files…”

Bug when adding .net framework 3.5 in Server 2012

To solve this, you can either:

1. Go to a command prompt and enter this:

dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

Note: Source should be the Windows installation disc. In my case, this was located on D:

Bug when adding .net framework 3.5 in Server 2012

2. Go down to “Specify an alternate source path” and enter “d:\sources\sxs” as the path.

Specify alternate source path windows server 2012 .net framework 3.5

Specify alternate source path windows server 2012 .net framework 3.5

Now you should see this under your Features list:

.NET Framework 3.5 feature installed on Windows Server 2012

 

220 Responses

  1. ashinn

    Thanks for the post. Pretty crazy this made it past QA… you’d think installing .NET 3.5 would be a pretty key thing to test 🙂

  2. Thomas JODET

    Impressive, i was just turning around and i found you, great
    Thanks a lot

  3. Karl Dunkerley

    Just used this to install SQL2012 on a Windows Server 2012 virtual box. It worked fine so thanks for the advice. Am going to use it to create a Sharepoint 2013 farm.

    BTW I set up another test box and used the option that appears at the bottom of the same window as the error message (shown in yellow above) and this installed the feature very quickly. Am going to do this to all my servers as a precautionary measure.

  4. ajhstn

    Thank you, i actually used ps with Install-WindowsFeature NET-Framework-Core –Source D:\Sources\sxs, thanks for the tip.

    My issue was then installing SQL server 2008r2 onto the server 2012 box, all default options, it failed to install, is there anything else i need to be aware of?

  5. Zero

    I tried the recommended solution, but I get the error 0x800f081f. I tried to copy the entire folder on the local disk and change path same problem

  6. Anthony Gachango

    That worked like charm..There should be a patch for this

  7. Benjamin Tran

    Hey Zero,

    I was running into the samething you were. I mounted the OS installation ISO and ran the command it and ended up running succcessfully. Hope that helps.

  8. Dave M

    This was very helpful, and I appreciate you documenting this.

  9. Marvin Kuers

    Worked like a charm to install .NET Framework 3.5 on my server. Thanks for the simple fix!

  10. P.J

    .NET 3.5 sources are on the CD/.iso of Windows Server 2012 in
    :\sources\sxs (as you mentionned).

    But When adding up the .NET 3.5 feature via Server Manager on your Windows Server 2012, when on the “Confirm installation selections” screen, there is a link at the bottom named “Specify an alternate source path” where you give the path I wrote above. Clicking install will work add .NET 3.5 flaslessly.

  11. P.J

    I just re-read what I’ve typed late last night… didn’t know the path would come out distorted like that. The ‘backslashes’ were interpretted it seems (is your site protected from injections?).

    Also, sorry for the typos… it was REALLY late for me! 🙂

  12. Vincent

    Thanks for sharing… Appreciate… great job ! =)

  13. David Massiha

    I did many times like you mentioned above with no result it is giving me this error Error:0x800f0906. Any help please

  14. Amit Sharma

    Great Its working.

    Thanks for Saving our times.

    Amit

  15. teja

    “Error 87” is what i get while pushing the command ahead in the cmd.I am still guessing what to do next,probably the feature “NEWTECH”was the thing I need to know how to get in the cmd.I need a assistance in this,Is there any one who can help out…………………

  16. JJR70

    Thank you! You saved me from pulling out my hair. 🙂

  17. gabriel

    and without de instalatión CD? for a windows azure 2012 server?

  18. pascal

    if the above method does not work for you. Use add feature via server manager tick to install .net35 framework and on the next page specify the sources\sxs\path which should be you iso dvd. this should work.

    Many thanks

  19. snydaman

    Fantastic! Works like a charm. Thank you!!!

  20. Bunnaks

    This command works perfect:
    dism /online /enable-feature /featurename:NetFX3 /all /Source:D:\sources\sxs /LimitAccess

    Thanks so much

  21. Amir

    It works like a charm!
    Thank you very much 🙂

  22. Justin

    What you’re missing is the bottom of that screenshot that allows you to select alternate paths. which is really all you’re doing via the cmdline specifying the CD as the location. so its not a bug, its just poorly designed UI. And perhaps its stupid that they force you to use the CD to get it installed.

  23. Lohme

    The solution you gave worked perfect.
    dism /online /enable-feature /featurename:NetFX3 /all /Source:d:\sources\sxs /LimitAccess

    I could not install the .NET 3.5 from the Server Manager on 2012 server. I was about to give up then, I googled a fix for the last time and I found your solution. A M A Z I N G… Thanks!

  24. Ashraful Hoda

    Thanks it was very simple , it worked for me

  25. Rick

    Got a 0x800f081f error with D:\ mapped and all. What a cluster fuck of an install this is. On the RC I could live with it, not after paying 2000 euros for a license. This will not do. Not to mention no WSUS support unless that’s installed on Windows 2012 too, which you need .net 3.5 for. I don’t even.. Windows 2012 looks more and more like an open source project, what are they doing?

  26. Pål Elnan

    Thanks, it worked brilliantly.

    @Rick, are you sure your ISO mounted on D:\? With me, it mounted on E:\.

  27. Mostafa Khairy

    This is brilliant. Many thanks.
    You saved me from getting mad 😉

  28. Peter

    Is it possible that framework 3.5 cannot be installed on evaluation licence of WS2012 datacenter? I’ve tried this method after I’ve tried several times adding a feature. I even tried to run installer directly but result is the same….failed to install.
    Any thoughts would be appreciated.
    Thanks!

  29. Maneesh Walia

    Excellent Buddy….. Thank u so much 🙂 🙂 🙂

  30. Jim Sperry

    After downloading dotnetfx35, and trying every which way to get it to install (because this the way we did it in class)just using the 2012 windows install ISO was so easy. I guess since it will not install from add / remove features in Srv Mgr I just thought it was not in the 2012 windows package. Why include it but in the install medium, have a check box for it in add features and then not let it work. It’s Sooooooooooooooooo Microsoft.

  31. Sweeper

    Stupid Microsoft. Why can they not leave it as it was in server 2008 R2. There it was working fine. Now you need to go change the location of where to find the files. How dumb!!!

    Thank you Daniel for taking the time and posting on this problem and the solution.

    I say it AGAIN: STUPID MICROSOFT!!!

  32. Omid Navid

    Thanks my man, i was a beginner at windows server, it really helped me alot

  33. Juan de Dios

    Thanks a lot, it worked for me Win 2012 R2.
    Many thanks from Honduras.

  34. Ammar Ali

    Thanks Man, That’s so helpful.
    I can’t understand why Microsoft going on updating the .net framework and then ask you to install the old releases??
    as Jim Sperry says “It’s Sooooooooooooooooo Microsoft”.

  35. Jean-Pierre Fouche

    Agree with Peter (October 12, 2013 at 20:06). I cannot get it to install on the Evaluation Edition.

  36. melvyn

    many many thanks mr daniel classon for the tutorial you post.. it helps me a lot

  37. ElmoVanKielmo

    I have manually downloaded .NET Framework 3.5 installer from Microsoft website and on “Specify an alternate source path” form I’ve entered the path of my Downloads folder. Feature has been installed without error. It seems that it’s exactly the same installer as on Windows setup DVD. Your solution doesn’t require manual download but mine can be useful because sometimes the server is far away from your workstation and using DVD is not very handy.

  38. Sarah

    Thanks It worked for me too. But I dont undyerstand why MS had to do this. its abit tiring

  39. Supremo

    There are about 100 tutorials exactly like this one describing what to do if you have the disk, but not a single one describing what to do if you dont have the disk! Installing .net 3.5 on windows 8 without disk is not possible?? No this is not a pirated version, it’s legit but on a remote machine and running a virtual image. I cannot “insert disk”!!!!
    Please a tutorial on how to do this _without_ the frigging disk.

  40. Daniel McD

    Thanks for the article Daniel, worked a treat, though in my environment once I actioned the “dism” command .net 3.5 was then installed. No need to “choose” source.

    @Supremo
    I manage a virtual environment, you’ll probably want to find a way to Mount an ISO of the disk and perform the same operation as above.

  41. Justin Goldberg

    There’s no need to use UpperCase. In my (albeit limited) experience with powershell all commands can be entered as lowercase. But I realize that it makes the commands more readable.

  42. Some one

    Didn’t work for me. It failed and complained about non-matching verification information.

    However one in PowerShell DID WORK:
    Install-WindowsFeature NET-Framework-Core

    It was the only solution that worked on my 2012 R2 Standard evaluation.

  43. Daniel Classon

    You are right, there is no need to use upper case, it will work with lower case as well. It’s just general best practice to use it, for easier readability 🙂

  44. Rama

    Great Article, Worked like a Charm. Thanks for posting it.

  45. DexterPOSH

    With PowerShell :
    Install-WindowsFeature has a parameter by the name -Source where you can specify the path to alternate WinSxS directory on a mounted image, network path etc.

    Install-WindowsFeature NET-Framework-Core -Source D:\source\sxs

    The above will work too

  46. Kharad Variyava

    Hi Daniel, helpful article, but didn’t work for me though 🙁

    I tried the Step 2 first about 10 odd times, but was unsuccessful. Then I used Step 1, but it got stuck at 65.9% for something like 10 odd minutes, then moves onto 66.2% where it exits with error code: 14028. A component’s file does not match the verification information present in the component manifest.

  47. Kevin

    Thanks!
    Of course, since the files are on the CD/ISO anyway, do not know why the feature installation cannot find them on its own. . .

  48. Brian Whitaker

    Thanks very much for putting this together.

  49. SQLJarHead

    Awesome! Thankyou very much worked like a charm.

  50. Luan Moreno

    Congratulations for the excellent post. Keep that way.

  51. NetoMeter

    It is important to understand why you get this message as this will help you choose what to do next.
    1. If your machine is connected to the Internet, you can continue with the installation and the “Add Roles and Features” wizard will download the required binaries from the Internet. There is a logic behind this, as you get an updated version of the binaries.
    2. We are talking about 200MB of data. If you have a slow connection and the latest .Net 3.5 SP downloaded, the method suggested by Daniel is a very good choice.
    3. The installation fails, and the only way to install .Net 3.5 is the Daniel’s method when:
    – There is no Internet connection
    – There is a Proxy which blocks the connection to the download site
    – The Download location is not available – down for maintenance or update

    And yes, if you wonder why the installation of .Net 3.5 takes so long – you are downloading the 200MB binaries before they are installed

  52. morteza

    hello when i run the command see this error

    Error: 0x800f081f

    The source files could not be found.
    Use the “Source” option to specify the location of the files th
    o restore the feature. For more information on specifying a sou
    http://go.microsoft.com/fwlink/?LinkId=243077.

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

  53. Pat Reffner

    I had best results referencing the server location where the SHARED .ISO/.WIM file resided via the FQDN of the server rather than NetBIOS as this may imply to others..

  54. Erik Larsen

    We tried everything and no go, but by some coincidence I found out that if the server is not in a domain (just a workgroup), the server installs the dotnet3.5 without any problem and fixes 🙂

  55. Quincy Toyo

    I tried it, the message I get is: ‘dism’ is not recognized as an internal or external command, operable program or batch file.

  56. Matthew W.

    It’s worth noting that the two methods use different authentication to the source media files when accessed remotely. For a locally attached disk or SXS copied locally, the two methods are roughly equivalent.

    In the remote case:
    Using dism.exe will access the files under your user credentials.
    Using the wizard or install-windowsfeature cmdlet will access the source files under the machine$ account. This is similar to how hyper-V, for example, accesses VHDs on a remote shared storage.

    Thanks for a great article.

    — Microsoft Windows Server Deployment team.

  57. super.developer

    didn’t worked
    I received this error
    Enabling feature(s)
    [===========================66.5%====== ]

    Error: 0x800f0906

    The source files could not be downloaded.
    Use the “source” option to specify the location of the files tha
    ion on specifying a source location, see http://go.microsoft.com

    The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

  58. Giuseppe Russo

    Good Morning,
    i have the same problem of the user Mike Lefebvre. I’m in workgroup. I tried all possible ways also changing a registry key. The source file are copied in the local disk and i’m able to read and write in this folder. Any another solutions?
    Thanks

  59. Shawn

    Remove update Security Update 2966827 and it will install just fine.Then reinstall the update.

  60. Stan Hecht

    The command line version worked for me, not the GUI. I had to burn a DVD and attach it to the virtual server before Install would find the files. Then NetFX3 installed. Strange that the GUI doesn’t let you browse to the alternate file location. THANK YOU for the solution!!!

  61. Kevin Dunne

    The reason the install had failed in my setup was because WSUS was enabled on my servers. Once i disabled WSUS on my servers by deleting the keys in the registry all worked perfect.

  62. Boris

    Hi people,

    I don’t have a installation CD but and ISO file of win server 2012. I copied this file to my desktop. When adding dotnet3.5 feature and need to specify path, I used the path c:\users\administrator\desktop\. Didn’t work for me. Been trying out many things a few days… Appreciate any help. Many thanks.

    Cheers,
    Boris

  63. David Eaton

    Thanks Shaun, “Remove update Security Update 2966827 and it will install just fine.Then reinstall the update.” Worked for me!

  64. Gabriele

    For me too! Thanks David !

    “David Eaton says:
    September 24, 2014 at 11:29
    Thanks Shaun, “Remove update Security Update 2966827 and it will install just fine.Then reinstall the update.” Worked for me!”

  65. Alican Kaylan

    Removing security update 2966827 worked for me as well. Many thanks 🙂

  66. kbish

    Great thanks Shawn!!!!!!!!!!!
    Removing security update 2966827 all work fine!!!

  67. BB

    Had to remove the same KB. I wish I looked at the comments an hour ago though!! Thanks!

  68. Thankyou

    @Martin, Removing KB2966828 worked for me as well, thank you very much.

  69. WIN2012 User

    @Eddie – Had to uninstall KB2966828

    Note, the last number is 8 not 7

    —This worked for me – thank you!

  70. Grant Thompson

    What I find most people miss is that the INSTALL button is available. Most people see the warning and then see the NEXT button disabled and go looking for an answer. @NetoMeter points out the options (e.g. you have no or really slow Internet connection).

    If you see this warning and have a half-way decent connection, just click Install and it will download what is required and install it for you.

  71. Dunedin IT

    Thanks for the article, managed to get our old Sage Accounts working on our new RDS server 2012 r2.

    Jamie

  72. rdefulio

    Its pretty annoying that the Server Manager/Add Features applet can’t go fetch the files it needs directly from the internet these days. You have to have DVD around, seriously? I understand leaving out optional components but this is just a bunch of makework. In a secure environment with no internet access, OK, I understand needing the DVD. It’s little things like this that drive us nuts.

    Thanks for the instructions, though!

  73. Mika

    Hei!

    Thanks for this advice. It helped me a lot.

    Regards, Mika

  74. Fuller Ming

    Is there a way to simply get the dot.net 3.5 image and designate it as the source?

  75. Zaheer

    Great, its working and saved my lot of time.

    Thanks
    Zaheer Khan

  76. Dirk

    Awesome. Worked for me. New install of a Server 2012 R2 instance for a VM on Stratus everRun. Not sure why it didn’t take on this install as it has worked before on other builds but, this one was not taking it until this work-around. Thanks again.

    Dirk

  77. Jacques Lafalize

    Thanks for this Help.

    But, we had removed the server from the domain before that procedure running correctly

  78. Joe

    Very relevant and to the point. I did not need to go back and specify the path after following these instructions as the feature was added. Thank you so much for this fix.

  79. santo

    Good article … Thanks it saved my time to troubleshoot…

  80. Reza

    perfect. it is work corectly for me.
    Thank for your article.

  81. Sam

    For 2 days , I tried every thing , even downloaded it from Microsoft , nothing had worked, your method worked so beautifully , thanks a lot , your are a champion
    Joe

  82. Cumbrian Man

    Many thanks Daniel. I had similar experience as Sam (March 15th) where nothing worked, even an offline installer. Tried your command line version and this worked a treat. Many hours of head scratching saved !!
    Cheers, Alan.

  83. Peter

    Important!!! during the net 3.5 Installation the Server try to connect to Windows update Server. But if u put Server already into WSUS/OU where WSUS is configured by GPO: Server can not connect to Windows update Server anymore. you will get error message anyway. Solution: put Server to an OU where WSUS is not configured. make gpupdate /force or reboot afterwards. Now Server is aible to get latest net 3.5 files from Internet and Features install will walk through properly

  84. Peter

    @Jacques Lafalize – by the way. of course you will get same result if u remove Server from Domain. 😉 But it is not neccessary

  85. Brian Love

    Thank you soooo much!
    This saved not only my mind but truly made me look like a hero!!!

    This really made my day.
    thanks,

  86. Riley

    Awesome, thanx! This is what I needed to get 3.5 installed.

  87. Hamish

    Brilliant – thanks!. We had an .iso of Server 2012 Open Licence which had worked before on many VM installs but failed on one machine. The tip to put d:\sources\sxs as an alternative source in the GUI resolved it.

  88. Muhammad Shahid

    Thanks a lot.This is what I needed to get 3.5 installed.

  89. neil

    Thank you, only solution that worked for me.

  90. Medinus

    I´m not able locate my Windows Installation Disc. Is there a workaround for this?

  91. Shubha

    Thanks a lot… this really works!!! 🙂

    Just want to add one thing:- if you are not connected to Windows update Server, mount OS installation DVD, and specify the same drive in the path mentioned.

  92. Kevin Frey

    Thanks very much for this – exactly right.

  93. Mike Ventham

    Rather than remove the server from the domain to get it to talk to Windows Update. just change the HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWUServer to 0, restart the Windows Update service and then try to install it. After installation, change the key back to 1 and restart Windows Update service again.

  94. Eamonn

    Rather than remove the server from the domain to get it to talk to Windows Update. just change the HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWUServer to 0, restart the Windows Update service and then try to install it. After installation, change the key back to 1 and restart Windows Update service again.

    Thanks! that worked!

  95. James H

    Thanks. I am not a Windows guy but occasionally have to install Windows applications. Your blog fixed my issue quickly and effectively. I really appreciate the trouble you took to publish this.

  96. Kyle

    Thank you! This initially failed but I tried again, this time capitalizing the D: for the path to opt drive and it worked. (don’t know why that mattered). This works on Server 2016 preview as well.

  97. John James

    Awesome!!! I could not get this to work on my own, thanks for your help!!!

  98. Michael S

    A damn American HERO. At least I think he’s MERICAN.

  99. soltan

    good your job very tank you . I am from iran my name is soltan.

  100. Sven

    brilliant from you sharing your solution with us. so nice.

    big shit again from MS. in the days of automation

  101. mohamed hosny

    i swear i search about this solution two days
    thanks alot of

Leave a Reply