Sunday, 24 July 2011

Solution Do not Retract or solutions are not Deploying

When you go to the 'Solution Management' screen of Central Administration and retract a solution (wsp) it seems to retract ok but the status of the solution remains ‘Deployed’. When you try and delete the solution in the GUI you then get an error saying that you must retract the solution first – but it is retracted!So you can say it almost hang mode where you are not able retract or deploying new solution

Please use below Commands for survive

// Disable Feature from Web Application
Disable-SPFeature -Identity FeatureFolderName -url http://sitename
Note : FeatureFolderName you can find from  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\
Or
You can deactivate Feature from Site  Collection .

// Uninstall Feature from Site Collection
Uninstall-SPFeature FeatureFolderName
Note : FeatureFolderName you can find from  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\

//Remove Solution from All Web Application
Uninstall-SPSolution -identity TestWebPart.wsp -allwebapplications


//Remove Solution from Central Administration using Force Command
remove-spsolution -identity TestWebPart.wsp.wsp -force

//Again Add Solution
add-spsolution -literalpath C:\TestWebPart.wsp

//Install Solution using Force Command
install-spsolution -identity TestWebPart.wsp -webapplication http://Siteurl -GACDeployment -force

No comments:

Post a Comment