Showing posts with label stsadm. Show all posts
Showing posts with label stsadm. Show all posts

April 04, 2013

Cannot Deploy Solution to SharePoint: Solved


Recently, while I was working on a SharePoint project, specifically on creating a custom web-part, so the VM  I was working on was old enough, and having a lot of issues ( I use it for testing ), and while deploying the solution the deployment stopped with an error that deployment of the solution have failed.
After investigation I found out that the "SharePoint 2010 Administration" service was stopped, I tried to start the service but that action would always fail. since I needed to test my solution I used the following command to actually deploy the solution again


stsadm.exe -o execadmsvcjobs 

what it did was it executed all the administrative jobs, and as one of the, deployment.

Good Luck !

March 11, 2013

SharePoint PowerShell Useful Commands


SharePoint Power-Shell Useful Commands

Adding a solution :

  • stsadm –o addsolution –name SharePointProject2.wsp

or Using SharePoint Management Shell :

  • Add-SPSolution c:\code\SharePointProject2\bin\debug\SharePointProject2.wsp



Deploy a solution :

  • stsadm –o deploysolution –name SharePointProject2.wsp –url http://moss-server –allowCasPolicies –immediate

or Using SharePoint Management Shell :

  • Install-SPSolution –Identity SharePointProject2.wsp –WebApplication http://sp2010 -GACDeployment