A few days ago I developed a simple solution for SharePoint 2010. Everything went well in the test environment, I could executed the stsadm addsolution command (http://technet.microsoft.com/en-us/library/cc263162(v=office.12).aspx) and after that I could deploy the solution.
But when I runned the addsolution command in production I got the following error message:
“Error occurred in deployment step ‘add solution’. Object reference not set to an instance of an object“.
After some search on the internet I found out that could be a permission problem. But my user is Farm administrator so I don’t think is the case. After a while I passed the wsp file to a coleague and he could run succesfully the command. So I think could be because of the rights to the SharePoint Config database, but I’m not sure. Normally if so, I should not be able tu run stsadm commands, but I could. I’ll investigate more on that.