SharePoint 2010 Deployment Problem: Error occurred in deployment step ‘Retract Solution’

Sharing is Caring

Today while i was working on a SharePoint 2010 project,i came across this problem:

“Error occurred in deployment step ‘Retract Solution’: C:\Windows\Temp\{some guid with packagename}.wsp could not be created because the contents could not be found under id {some guid} in the configuration database.

I was trying to figure out what the problem might be then i realized it was my fault :))

I stopped SharePoint 2010 Timer service before deploying.So starting the Timer Service from services.msc resolved my problem.