I just performed my first SharePoint Foundation 2013 install on a Windows 2016 Server; and it was way more complex than I would have imagined. I’ve put the steps below if any one else runs into issues and also so I can remember how to repeat the install in the future.
This is what worked for me:
1 – Download the SharePoint 2013 SP1 installer
2 – Run the Prerequisites install
3 – The install will eventually give the error message “Application Server Role, Web Server (IIS) Role: configuration error” part way through:
There is a Microsoft KB article about this here:
But unfortunately the hotfix described on the page will not install on Server 2016 and the scripts also give errors in Server 2016.
I modified the scripts to be compatible with Server 2016 and the ones below should work.
4-When you recieve the error message run Powershell as administrator and run the 3 commands below:
Import-Module ServerManager
Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45
Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer
5 – Once you have run these commands in PowerShell, rerun “Install software prerequisits” and it should now complete successfully.
6 – Restart your server
7 – At this point you are probably feeling like you are making progress, but alas, if you run the SharePoint instalerl you will get an error that the .NET Framework 4.5 is not installed. This is due to .NET 4.6 being installed with Server 2016, which is not recognized by SharePoint 2013. This issue is described here:
To work around this you need to extract the installer files from the SharePoint.exe that you downloaded:
sharepoint.exe /extract:C:\SharePointInstaller
8 – Then download a DLL fix from the Microsoft site here:
9 – Unzip the contents and copy the wsssetup.dll file into your c:\SharePointInstaller folder.
(yes, i thought this was a crazy amount of steps as well, they are described in painful detail in the support link in step 7)
10 – Now run setup.exe from your c:\SharePointInstaller folder and it will (finally) finish the regular install steps.
Thank you. Was running into the same issue and your article helped me a lot.
Hey Roger,
thanks for the great explanation!!!
Just in case somebody ran into the same problem i had:
During the installation process an error occurred and the installation canceled.
I fixed it by leaving the wsssetup.dll file in the folder c:\SharepointInstaller original and copied the fixed DLL into the folder c:\SharepointInstaller\updates instead, this helped.
Hey Roger,
thanks for the great explanation!!!
Just in case somebody ran into the same problem i had:
During the installation process an error occurred and the installation canceled.
I fixed it by leaving the wsssetup.dll file in the folder c:\SharepointInstaller original and copied the fixed DLL into the folder c:\SharepointInstaller\updates instead, this helped.
Hi Roger,
good article there, however I needed additional steps to install SP 2013 Foundation on a fresh Windows Server 2016.
The SP Install exe (Sharepoint_2013_Foundation.exe) tries to find and download some of the prereq. components on MS Servers. But they are not there anymore. So you need to download all those components you mentioned 1 by 1 from here: http://jpwaldin.com/blog/?p=236
Extract the SP Install exe and place those files like shown in that link. Then run
prerequisiteinstaller.exe /PowerShell:prerequisiteinstallerfiles/Windows6.1-KB2506143-x64.msu /NETFX:prerequisiteinstallerfiles/dotNetFx45_Full_x86_x64.exe /IDFX:prerequisiteinstallerfiles/Windows6.1-KB974405-x64.msu /Sync:prerequisiteinstallerfiles/Synchronization.msi /AppFabric:prerequisiteinstallerfiles/WindowsServerAppFabricSetup_x64.exe /IDFX11:prerequisiteinstallerfiles/MicrosoftIdentityExtensions-64.msi /MSIPCClient:prerequisiteinstallerfiles/setup_msipc_x64.msi /WCFDataServices:prerequisiteinstallerfiles/WcfDataServices.exe /WCFDataServices56:prerequisiteinstallerfiles/WcfDataServices56.exe /KB2671763:prerequisiteinstallerfiles/AppFabric1.1-RTM-KB2671763-x64-ENU.exe
(I had to leave you sqlncli.msi there, not sure why but the install routine was not able to find the file)
Now you still can not install SP 2013 on Server 2016, because Server 2016 comes with .NET 4.6. SP 2013 only runs on .NET 4.5 tho. Luckly (!!!) theres a fix for this from MS: https://support.microsoft.com/en-us/help/3087184/sharepoint-2013-or-project-server-2013-setup-error-if-the-.net-framework-4.6-is-installed
You need a file called “wsssetup.dll” to place in the extracted SP Install exe (in the “updates” dir). Then run setup.exe from the extracted SP Install exe and SP 2013 installs even with .NET 4.6 :).
Hi,
Great guide, though after I ran the powershell script i still have error running on prerequisite install, open the log last 2 lines are Opened action for user then after that is log.
Thanks for your post! It works for me, but stay the configuration forever configuring… “Configuring Application Server Role, Web Server IIS Role… hours without changes…
Thanks! Works for me, but stays hours “configuring Application Server and Role, Web Server (iis) Role forever…
Shareppoint Fundation 2013 and Windows Server 2016 on Azure… Can you help me to make it work?
Thanks A LOT!!!
thx a lot …
on my fresh installed server 2016 not all worked fine even with ur tipps BUT ..
the combination of your tips and the tipss from here (https://gallery.technet.microsoft.com/DownloadInstall-SharePoint-e6df9eb8) made it work finally
Excellent work, Roger. Exactly what I needed to get rolling.
In Step 4 it failed for me:
Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found.
Use the “Source” option to specify the location of the files that are required to restore the feature. For more
information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f081f
At line:1 char:1
+ Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,We …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent…Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
owsFeatureCommand
Success Restart Needed Exit Code Feature Result
——- ————– ——— ————–
False No Failed {}
———–
So I had to insert Window 2016 DVD (D:\) and add “-Source D:\sources\sXs” at the end of the command:
Add-WindowsFeature Net-Framework-Features,Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Health,Web-Http-Logging,Web-Log-Libraries,Web-Request-Monitor,Web-Http-Tracing,Web-Security,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Digest-Auth,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Tools,Web-Mgmt-Console,Web-Mgmt-Compat,Web-Metabase,WAS,WAS-Process-Model,WAS-NET-Environment,WAS-Config-APIs,Web-Lgcy-Scripting,Windows-Identity-Foundation,Server-Media-Foundation,Xps-Viewer -Source D:\sources\sXs
Thanks, that worked for me.
how do I extract that exe?
I’m so confused
Thank you very match!!!
Great Guide, that saved my day 🙂
If you disable IE enhanced Security on the Server, all the preq downloads still work
Roger U R The best !!!
Thanks a lot for this great guide.
Thanks a lot…
Brilliant! It worked flawlessly for me. Thanks a lot.
Very useful thank you!
I think I already gave you HUGE KUDOS for this months ago but ran into the same problem again and you have worked a miracle!!!!
Thanks for sharing this information, much appreciated !
good article, thanks
Thank you! This saved me lots of time. I did have to download a different wsssetup.dll from here:
https://support.microsoft.com/en-us/help/3087184/sharepoint-2013-or-project-server-2013-setup-error-if-the-net-framewor
big thanks
Thanks Roger
You just made this world a bit better and saved a lot of time for me.
I never could get the prerequisites install to finish after the three listed powershell commands. Maybe Microsoft changed something since this how-to was written. Maybe I wasn’t holding my mouth just right. I dunno. Guess I’ll drop back to Server 2012 and see if Foundations 2013 still works there…
actually, my previous comment isn’t totally accurate. The failure might have been my fault – the 2016 server isn’t completely fresh – earlier this week I had installed WebDeploy on it and copied an existing website onto it. So maybe that threw off the Prerequisites installation somehow.
I did get Foundations 2013 to install on a fresh and fully patched Server 2012 box, although even that took a little fiddling.
Thanks for the detailed instructions.
I recommend to also go into server manager and disable IE Enhanced security as explained in the solution for: https://community.spiceworks.com/topic/1991530-fixed-sharepoint-2016-never-installs-pre-requisites-properly
This also helped me: https://blogs.technet.microsoft.com/praveenh/2013/02/21/sharepoint-2013-prerequisites-fails-with-msi-installer-error-code-1603-while-installing-appfabric-1-1/
I added “c:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules” to the PSModulePath entry in the environment variables.
Good luck
Awesome work Roger. Worked exactly as you said.
Many thanks
Roger,
Thanks for the TOP described instructions. All worked fine for me in the end.
Unfortunately I spend many hours (i.e. reading articles in Google) to get the job done and . But then I found your blog. After that the job has been quickly done.
Kind regards,
Jos Verberkmoes
Distrian BV
The Netherlands
Hello,
Great explanation, I could actually install, but I have a problem with lists and libraries when adding item or creating folder. Give the following error: “The server can not save the form at this time, please try again later.”
Has anyone experienced this error?
After multiple attempts to get the SharePoint 2013 pre-requisites to install on my fresh Windows Server 2016 Essentials box, I simply downloaded SharePoint 2019 from the Microsoft site and ran its prerequisite installer. Worked perfectly. Looks like the 2019 pre-requisites provide everything that SharePoint 2013 needs. And the 2019 pre-req installer ran flawlessly. Well, flawlessly after I uninstalled AppFabric which had been installed while I tried to get the 2013 pre-req to complete.
Thank you for this. I tried it all.
I had no luck. It still stops with the error IIS: configuration error.
Tried all the hints and links, nothing helped.
Someone give this man a raise! You saved me a bunch of time, and cursing. Very much appreciated.
Great article. Saved my life. 🙂
This’s perfect, thank you so much.
Hello, thank you for your Post, I have mix several tips of comment, and website.
Download Sharepoint 2013 Foundation SP1
Download Sharepoint 2019 Server
Download Appfabric 1.1
http://download.microsoft.com/download/A/6/7/A678AB47-496B-4907-B3D4-0A2D280A13C0/WindowsServerAppFabricSetup_x64.exe
Download Appfabric patch
http://download.microsoft.com/download/7/B/5/7B51D8D1-20FD-4BF0-87C7-4714F5A1C313/AppFabric1.1-RTM-KB2671763-x64-ENU.exe
Start 2019 Prequiries
Uninstall AppFabric
Install AppFabric Offline
Copy AppFabric to C:
With powershell
.\WindowsServerAppFabricSetup_x64.exe /i CacheClient,CachingService,CacheAdmin /gac
if you have problem :
https://blog.devoworx.net/2014/06/14/windows-server-appfabric-is-not-correctly-configured-as-sharepoint-2013-prerequisites/
Install Patch Appfabric
Install Sharepoint Foundation 2013 SP1
Extract from Sharepoint.exe
sharepoint.exe /extract:C:\SharePointInstaller
Run Setup.exe
Have a nice day
If you have problem, reboot, update your 2016.
I am trying to install SharePoint 2013 prerequisite files on Windows Server 2016. While installing AppFabric, it it throwing an error. “Installation failed”. Any inputs on this please.
Hello, I find in an old installation of Sharepoint WSSSetup.dll.
I put it in my repo
https://github.com/romain25/Sharepoint2013
Have a nice day and thank you for your Share
yes, its work, But my question is if we install the SharePoint 2013 in window server 2016 then by default ApI in not working.
Like:
URL/_vti_bin/listdata.svc/
/_api/Web/Lists/GetByTitle(‘ListName’)/Items
Can any one Help me for this matter.
Hi,
I got it installed. When I am trying to create the inital Sharepoint Configuration Wizard it throws following SPException
Failed to create the configuration database.
This is a critical task. You have to fix the failures before you can continue.
——————————————————————————–
An exception of type Microsoft.SharePoint.SPException was thrown. Additional exception information: There is no file with URL ‘_catalogs/masterpage/minimal.master’ in this Web.
Any help or idea ?
Hey,
Have you been able to solve it?
I just came accross this error and could not find any solution so far.
Thanks