Many of developers faced with this error while deploying SharePoint solution from Visual Studio.
I tried many different ways to solve this error like
Delete the following folders from the project directory(In Visual Studio, Right click on project in "solution explorer" window and select 'Open folder in Windows Explorer' ;) )
- bin
- obj
- pkg
and then IISRESET (Goto start > Run > and write IISRESET and press ENTER )
Sometimes it works but not every time, So what is the another solution to remove this error while deploying?
Here is simple tric to resolve this problem.. :)
Just open powershell (or Sharepoint management shell) and execute following command,
(get-spsolution YourSolution.wsp).Delete()
that's it.. now you can deploy solution without getting "The language-neutral solution package was not found" error.
*Note: Change "YourSolution.wsp" name to your WSP file name.
thanks Ankit,
ReplyDeleteeven i tried your solution also, but it was not working for me.
Ohh really....but It always works for me.
ReplyDeletegood!!.... Thank you
ReplyDeleteIt worked (get-spsolution YourSolution.wsp).Delete()
But what is the case??
The Get-SPSolution cmd returns a specified SharePoint solution and after deleting your solutions wsp file, it will get resolved.
Deleteclose the visual studio , again open and deploy.
ReplyDeleteHi i am getting the below error if i run that command.
ReplyDeleteException calling "Delete" with "0" argument(s): "Object reference not set to a
n instance of an object."
This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post. seo expert
ReplyDelete