• Skip to main content
  • Skip to primary sidebar

Technical Notes Of
Ehi Kioya

Technical Notes Of Ehi Kioya

  • About
  • Contact
MENUMENU
  • Blog Home
  • AWS, Azure, Cloud
  • Backend (Server-Side)
  • Frontend (Client-Side)
  • SharePoint
  • Tools & Resources
    • CM/IN Ruler
    • URL Decoder
    • Text Hasher
    • Word Count
    • IP Lookup
  • Linux & Servers
  • Zero Code Tech
  • WordPress
  • Musings
  • More
    Categories
    • Cloud
    • Server-Side
    • Front-End
    • SharePoint
    • Tools
    • Linux
    • Zero Code
    • WordPress
    • Musings
Home » Backend (Server-Side) » The Language-Neutral Solution Package Was Not Found

The Language-Neutral Solution Package Was Not Found

By Ehi Kioya Leave a Comment

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

I often encounter this error when deploying SharePoint 2010 or 2013 solutions with Visual Studio and it doesn’t go away easily unless I use Solution #4 below.

The reason for this error has something to do with Visual Studio caching. Visual Studio seems to mistakenly believe the solution is already in the solution store and tried to retract it. SharePoint Central Admin thought differently (see System Settings > Manage Farm Solutions and your failing solution probably isn’t there).

Some say since the error is caused by a mere Visual Studio caching issue, simply closing and restarting Visual Studio can fix it. However this has never worked for me. This post logs all possible fixes for the error that I have found. I highly recommend going straight to Solution #3 and #4 (most reliable solution(s) in my opinion).

Solution #1

Delete the following folders from the project directory (in Visual Studio, right-click on the project in the Solution Explorer and select Open folder in Windows Explorer).

  • bin
  • obj
  • pkg

Now perform an IISRESET. You can do this by running the IISRESET command in PowerShell or like this:
Goto Start Menu > Run > type IISRESET and press ENTER

Solution #2

  • Right-click your project in Visual Studio and choose Package
  • Create a PowerShell script containing the following:
    * Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction “SilentlyContinue”
    * Add-SPSolution -LiteralPath “[PATH TO WSP].wsp” -Confirm:$false
  • Retry the deployment from Visual Studio

Solution #3

  • In PowerShell running as Administrator run the Uninstall-SPSolution cmdlet:
    Unistall-SPSolution -identity {Name of WSP File} -allwebapplications
  • In PowerShell running as Administrator run Remove-SPSolution cmdlet:
    Remove-SPSolution -identity {Name of WSP File} -force

Solution #4

In PowerShell running as Administrator run the Delete() command:

(Get-SPSolution {NameOfWSPFile.wsp}).Delete()

Note: The brackets are part of the command.

This last solution is a quick and dirty (and highly reliable) way to fix this issue. I have found it to work even when all else fails.

However, I still recommend that you first perform the steps in Solution #3 before resorting to Solution #4.

Found this article valuable? Want to show your appreciation? Here are some options:

  1. Spread the word! Use these buttons to share this link on your favorite social media sites.
  2. Help me share this on . . .

    • Facebook
    • Twitter
    • LinkedIn
    • Reddit
    • Tumblr
    • Pinterest
    • Pocket
    • Telegram
    • WhatsApp
    • Skype
  3. Sign up to join my audience and receive email notifications when I publish new content.
  4. Contribute by adding a comment using the comments section below.
  5. Follow me on Twitter, LinkedIn, and Facebook.

Related

Filed Under: Backend (Server-Side), Visual Studio Tagged With: SharePoint, Visual Studio

About Ehi Kioya

I am a Toronto-based Software Engineer. I run this website as part hobby and part business.

To share your thoughts or get help with any of my posts, please drop a comment at the appropriate link.

You can contact me using the form on this page. I'm also on Twitter, LinkedIn, and Facebook.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

23,570
Followers
Follow
30,000
Connections
Connect
14,568
Page Fans
Like
  • Recently   Popular   Posts   &   Pages
  • Actual Size Online Ruler Actual Size Online Ruler
    I created this page to measure your screen resolution and produce an online ruler of actual size. It's powered with JavaScript and HTML5.
  • Fix For “Function create_function() is deprecated” In PHP 7.2 Fix For "Function create_function() is deprecated" In PHP 7.2
    As of PHP 7.2 create_function() has been deprecated because it uses eval(). You should replace it with an anonymous function instead.
  • How To Install PHP Packages Without Composer How To Install PHP Packages Without Composer
    This article shows how to bypass the Composer barrier when installing Composer-dependent PHP packages. Great shortcut for PHP enthusiasts!
  • About
  • Contact

© 2022   ·   Ehi Kioya   ·   All Rights Reserved
Privacy Policy