Friday, 12 September 2014

Error occurred in deployment step 'Retract Solution': The language-neutral solution package was not found.

I was working on one project when i got this error while deployment and i have Google it. I found some solution which are as below


  1. Close Visual Studio Solution and completely exit out of it, then run it again and compile. This sometimes fixes the issue. 
  2. Right-Click on your Visual Studio Solution, select "Clean" Solution, then Right Click on SharePoint Project and choose "Retract". Rebuild and Deploy. 
  3. In PowerShell running as Administrator run Uninstall-SPSolution: 
  4. Unistall-SPSolution -identity {Name of WSP File} -allwebapplications
  5. In PowerShell running as Administrator run Remove-SPSolution:                                   Remove-SPSolution -identity {Name of WSP File} -force
  6. In PowerShell running as Administrator run the Delete() command:                                     (Get-SPSolution {Name of WSP File}).Delete() 


But In My problem I do not Find WSP to uninstall. so what to do in such condition:
Just Follow this step:
  1. Open Your solution and Publish the Project. This will create wsp in Bin folder of your project.
  2. Open cmd in Administrator mode and enter this path;  cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\
  3. Then type following command to add wsp : stsadm -o addsolution -filename <path of .wsp file>.
  4. Then type following command to add wsp : stsadm -o deploysolution -name <name of .wsp file> -url  <site url>  - immediate -allowgacdeployment -force.

this work for me. when i deploy again it run as smoothly as it could.  

No comments:

Post a comment