Error occurred in deployment step 'Recycle IIS Application'' in SharePoint2010

I encountered this error when I was developing an application for one of the site collection. I gave site collection URL while selecting farm solution that I was creating.

Suddenly when deploying the application through Visual Studio 2010 I encountered this error and then I came to know that this error came in because a user under which I opened the Visual Studio did not have site collection administrative permission or at least site full access.

Once I gave permission, I was able to deploy it successfully. Silly!! but sometimes it is helpful tip. Isn't it?