Wednesday, September 30, 2009

The solution file located at "xxxx.wsp" does not appear to be a valid upgrade

Scenario:
You got the following error while using the upgrade command with your updated solution file.

Error : The solution file located at "xxxx.wsp" does not appear to be a valid upgrade for solution "xxxx.wsp".
The two solutions must have the same resource types (global or Web-application scoped).


Reason:
This can be due to change in feature scope or addition of a new feature in the solution package from its previous version.

SharePoint is complaining by saying that the solution was either deployed Globally last time and this time you are trying to deploy it to a specific Url or the other way around.

Solution:
I will suggest to better retract/delete the old solution and add/deploy the new one.

But just in case you have issues with this approach, I will suggest to compare the features in the solution package and move it to another solution package.

Comments welcome...

3 comments:

Unknown September 30, 2009 at 5:22 PM  

Good one Sandy.
But these are not the only scenarios indeed.

I have posted another scenario where we have had the exact error in my blog.. http://goodbadtechnology.blogspot.com/2009/09/solution-file-located-at-xxxwsp-does.html

joeller May 25, 2010 at 4:23 PM  

"I will suggest to better retract/delete the old solution and add/deploy the new one."

How?

joeller May 25, 2010 at 4:25 PM  

"I will suggest to better retract/delete the old solution and add/deploy the new one."

How?