SharePointAds TextOnly

Wednesday 23 February 2011

How to resolve "The language-neutral solution package was not found" error?


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.

7 comments:

  1. thanks Ankit,
    even i tried your solution also, but it was not working for me.

    ReplyDelete
  2. good!!.... Thank you
    It worked (get-spsolution YourSolution.wsp).Delete()

    But what is the case??

    ReplyDelete
    Replies
    1. The Get-SPSolution cmd returns a specified SharePoint solution and after deleting your solutions wsp file, it will get resolved.

      Delete
  3. close the visual studio , again open and deploy.

    ReplyDelete
  4. Hi i am getting the below error if i run that command.
    Exception calling "Delete" with "0" argument(s): "Object reference not set to a
    n instance of an object."

    ReplyDelete
  5. 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