I am trying to deploy a wsp through SP 2010 Mgmt Shell but every time it throws an error:

enter image description here

This is the script that I am running:

Add-SPSolution -LiteralPath "E:\QD Survey 2013-01-10\QDSurvey.wsp"
  • Can you please share the error message? – Karthik Jaganathan Oct 1 '13 at 13:13
  • Make sure the file is not read-only or you have run Powershell as "Run as administrator" – Arsalan Adam Khatri Oct 1 '13 at 13:14
  • Arsalan, The file is not read-only and I checked using both situations, running PowerShell as administrator and the other time without running as administrator but still the same error. – Zakir HC Oct 1 '13 at 13:19
  • Does the solution deploy using stsadm. stsadm.exe -o addsolution -filename E:\QD Survey 2013-01-10\QDSurvey.wsp – Nadeem Yousuf-AIS Oct 1 '13 at 14:23
  • Nadeem, same error after running stsadm.exe script – Zakir HC Oct 2 '13 at 6:15

I managed to resolved the error on my own. I checked my Event Viewer logs and found these errors occurring multiple times:

Event ID: 7031 "The SharePoint 2010 Timer service terminated unexpectedly. It has done this 34076 time(s). The following corrective action will be taken in 30000 milliseconds: Restart the service."

Event ID: 7024 "The SharePoint 2010 Timer service terminated with service-specific error %%-2147467259."

This seems that SharePoint Timer Service was crashing after every minute. This was somehow affecting my wsp deployment.

I followed the below steps to fix the timer service issue first and then eventually I was successful in deploying my wsp to the server:

  1. Open the Registry Editor
  2. Browse to HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Shared Tools > Web Server Extensions > 14.0 > Secure > ConfigDB
  3. Copy the value in the property "Id"
  4. Browse to folder C:\ProgramData\Microsoft\SharePoint\Config and create a folder with the name of the previously copied value.
  5. Restart the SharePoint Timer service

The folder should be populated with XML files within a minute.

After this my wsp was successfully deployed via SharePoint 2010 Management Shell using Add-SPSolution and Install-SPSolution commands.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.