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

 

Tagged with: , , , , , , , , , , , , , ,
Posted in Blog, Guides, SCCM 2012, SCCM 2012, Windows Server, Windows Server 2012, Windows Server 2012
140 comments on “How to install .NET Framework 3.5 on Windows Server 2012 and Windows Server 2012 R2
  1. Thanks it was very simple , it worked for me

  2. Thanks it was very simple , it worked for me

  3. ephesus says:

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

  4. Good article! .NET Framework 4.5 is installed by default in Windows Server 2012, it should not be removed! if you remove your NET Framework 4.5 for Windows Server 2012 you can excpect some problems, this is the solution. http://windowstechblog.nl/verwijderen-net-framework-4-5-server-2012

  5. Worked for me! Many thanks indeed for a great article.

  6. Brian Whitaker says:

    Thanks very much for putting this together.

  7. behruz says:

    It was so good, thanks

  8. cheng says:

    thank u so much. =)

  9. SQLJarHead says:

    Awesome! Thankyou very much worked like a charm.

  10. mdsajid says:

    Thanks a TON.. it worked. Great help!!

  11. Luan Moreno says:

    Congratulations for the excellent post. Keep that way.

  12. NetoMeter says:

    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

  13. morteza says:

    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

  14. Pat Reffner says:

    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..

  15. Erik Larsen says:

    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 :)

  16. Did not work for me until I removed my windows update GPO

    http://support.microsoft.com/kb/2734782

  17. Many thanks for the info.

  18. Quincy Toyo says:

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

  19. Matthew W. says:

    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.

  20. Mark Harby says:

    Nice one Daniel
    Worked a treat, thank you.

  21. Thanks it was very simple , it worked for me

  22. super.developer says:

    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

  23. Giuseppe Russo says:

    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

  24. Shawn says:

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

  25. Stan Hecht says:

    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!!!

  26. Bojan Kos says:

    Hi!
    Had this problem on server 2012. Solution was to uninstall some Microsoft updates.
    Credits go to:
    http://www.askvg.com/fix-0x800f0906-and-0x800f081f-error-messages-while-installing-net-framework-3-5-in-windows-8/

  27. Kevin Dunne says:

    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.

  28. Boris says:

    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

  29. David Eaton says:

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

  30. Gabriele says:

    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!”

  31. mstr me says:

    The solution of Kevin Dunne does it for me!
    Thanks Kevin!

  32. Alican Kaylan says:

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

  33. Magskull says:

    Great it works!

  34. Eddiie says:

    Had to uninstall KB2966828

    Note, the last number is 8 not 7

  35. kbish says:

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

  36. Martin says:

    Removing KB2966828 worked for me, thank you.

  37. BB says:

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

  38. Thankyou says:

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

  39. WIN2012 User says:

    @Eddie – Had to uninstall KB2966828

    Note, the last number is 8 not 7

    —This worked for me – thank you!

  40. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Daniel Classon

Categories