SharePoint 2013 Prerequisites Wizard failed because of Application Server Role and Web Server (IIS) Role

Sometimes SharePoint 2013 Prerequisites Wizard failed with the following error:

The tool was unable to install Application Server Role, Web Server (IIS) Role.

sQp7v

In most cases the reason for this error two things:

  1. Unable to install .NET Framework 3.5
  2. Or Current SharePoint setup is not compatible with Windows version, for example to install SharePoint 2013 in Windows Server 2012 R2 then you need to have SharePoint Server 2013 with Service Pack 1

To fix the first reason, follow the notes in this post https://fabdulwahab.com/2018/01/11/install-sharepoint-2016-prerequisites-offline-manually/

For the second reason, try the following solution:

Go to C:\windows\System32 folder, find and copy  “ServerManager.exe” as “ServerManagerCMD.exe” then run the prerequisite installer for SharePoint again.

 

Advertisements

Cleaning content database from missing files after upgrading

General Notes:

  1. Take backup form content database
  2. Run it in testing server before go production
  3. Run Test-SPContentDatabase again and again and make sure all issues are fixed
  4. Sometimes missing files issues could be in pages in recycle bin or in old page versions

Issue 1: MissingFeature

Fix: Follow steps in this article

http://get-spscripts.com/2011/06/removing-features-from-content-database.html

Or use this tool SharePoint Feature Administration and Clean Up Tool to find and delete broken features in a SharePoint farm

https://github.com/achimismaili/featureadmin

Issue 2: MissingSetupFile

Fix: Follow steps in this article

http://get-spscripts.com/2011/06/diagnosing-missingsetupfile-issues-from.html

Issue 3 & 4 : MissingWebPart & MissingAssembly

Fix: Follow steps in this article

http://get-spscripts.com/2011/08/diagnose-missingwebpart-and.html