Error : An object in the SharePoint administrative framework could not be deleted because other objects depend on it.

Recently, I was deleting a web application from my SharePoint server using Central Admin.I checked for “Delete content databases” and “Delete IIS Websites” and then press delete. After that an error window appears in screen and states below error:

An object in the SharePoint administrative framework, “SPWebApplication Name=kirtipp:1234’ Site Parent=SPWebService”, could not be deleted because other objects depend on it. Update all of these dependants to point to null or different objects and retry this operation. The dependant objects are as follows: SPSolutionDeploymentJobDefinition Name=solution-deployment-followmewebpart.wsp-0 Parent=SPTimerService Name=SPTimerV3

After digging into this error i came to know that something is running wrong in my server and it would not allow me to do the deletion of any web site and even i can not add any solution in “Solution Store”.

Reason: So what thing goes wrong?
An error itself stat that there was any timer job that is creating error and this timer job is related with “myfollowmewebpart.wsp” as mentioned in sharepoint error. So first i checked the “Solution Management” for this web part and i was right the error was displaying in red color in front of “followmewebpart.wsp” web part. After digging that i came to know that its deployed in one site.

So first i enabled “Windows SharePoint Administration Services” in my server.

Then i run stsadm command to check for failed retraction job.

Step 1: stsadm -o enumdeployments

It will give you the list of deployment jobs that are currently running.

Copy the JobId as it will be required in our next step.

Step 2: Now run

stsadm -o canceldeployment -id “copied job id”

When operation completed successfully. Check “solution management” now the error will not be there in front of web part.

It means that a retraction job is attached with this web part and its failed and that is why causing problem.

Now you can try to Deletion of website or adding and deployment of a solution or retraction of solution.

Hope this will help someone 🙂

2 comments

Leave a Reply