I was deleting a web application from my sharepoint server using CA.I checked for “Delete content databases” and “Delete IIS Websites” and then press delete. After that a error window appears in screen and states that
“An object in the SharePoint administrative framework, “SPWebApplication Name=Dhondiyals’ 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-mywebpart.wsp-0 Parent=SPTimerService Name=SPTimerV3”
After reading 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’t add any solution in “Solution Store”.
So what was that wrong thing?
Humnnnnn i thought there was any timer job that is creating error and this timer job is related with “mywebpart.wsp” as mentioned in sharepoint error. So first i check the “Solution Management” for this web part and i was right the error was displaying in red color in front of “mywebpart.wsp” web part. After digging that i came to know that its deployed in one site.
It means that a retraction job is attached with this web part and its failed and thats why causing problem.
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 manageent” now the error will not be tehre in front of web part…
Now you can do any thing example Deletion of website or adding and deployment of a solution or retraction of slution.