Saturday, 5 August 2017

SharePoint 2013 – Retract Solution – Access Denied error

Hi All,

Today, new error and solution. I’ll explain the error which we received while retracting farm solution and the solution for it.

Background: We have SharePoint 2013 farm and were retracting solution, we were using chrome browser. In browser in two tabs our site was open and in one tab central admin. When we are trying to retract solution through central admin we were getting an “Access Denied” error. We are logged in with user having Administrator rights so it seems not to be user permission issue.
It was very small fix but thought to share, can save your time.

Error and Stack Trace:
Access denied.  Only machine administrators are allowed to create administration service job definitions of type: Microsoft.SharePoint.Administration.SPSolutionDeploymentJobDefinition, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.
Application error when access /_admin/RetractSolution.aspx, Error=Access denied.  Only machine administrators are allowed to create administration service job definitions of type: Microsoft.SharePoint.Administration.SPSolutionDeploymentJobDefinition, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.   at Microsoft.SharePoint.Administration.SPAdministrationServiceJobDefinition..ctor(String name, SPService service, SPServer server, SPJobLockType lockType)     at Microsoft.SharePoint.Administration.SPSolutionDeploymentJobDefinition..ctor(String solutionName, Guid solutionId, UInt32 lcid, SPTimerService service, SPCompatibilityRange compatibilityRange)     at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionDeployTimerJob(DateTime...              e4a5099e-e182-6064-8575-d8b087e7d93c
General                             8nca      Medium             ... dt, Collection`1 webApplications, SPSolutionDeploymentJobType jobType, Boolean globalInstallDlls, Boolean force, Boolean isRestore, SPCompatibilityRange compatibilityRange)     at Microsoft.SharePoint.ApplicationPages.SolutionPageBase.CreateDeploymentJob(Boolean deploy, String strSelectedWeb, Boolean globalInstall, DateTime dt, Boolean localDeployment)     at Microsoft.SharePoint.ApplicationPages.RetractSolutionPage.BtnSubmit_Click(Object sender, EventArgs e)     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsy...              e4a5099e-e182-6064-8575-d8b087e7d93c

Solution:

It seems to be weird error. No user permission issue.

We googled a lot and then got below article related to same issue but not exact one.


In above article not exact issue mentioned but at least we got an idea. We have closed the browser, open the central admin again with run as administrator option, tried again it worked like charm.

Thanks!

Enjoy Reading J

As usual any comment / suggestions / feedback / questions always welcome :)