title: SharePoint stsadm addsolution - fails with permission based error (object ref)
body: <p>Attempting to deploy a MOSS solution to a UAT server from dev server <em>for the first time</em>. On executing this command </p>
  
  <pre><code>stsadm -o addsolution -filename xxx
  </code></pre>
  
  <p>I get a "Object reference not set to an instance of an object"
  Based on these links: (and others):</p>
  
  <p>[<a href="http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276/][1]" rel="nofollow noreferrer">http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/63f0f95d-1215-4041-be6d-64ae63bda276/][1]</a></p>
  
  <p>[<a href="http://www.telerik.com/community/forums/thread/b311D-bachea.aspx" rel="nofollow noreferrer">http://www.telerik.com/community/forums/thread/b311D-bachea.aspx</a>
  I made sure of the following:][1]</p>
  
  <ol>
  <li>I am a member of the farm admin group on the MOSS server </li>
  <li>I am member of the WSS_RESTRICTED_WPG on the server</li>
  <li>I was already in the WSS_ADMIN_WPG group on the server</li>
  </ol>
  
  <p>I checked the event log and found exceptions saying that the login to my Site Services DB failed. </p>
  
  <p>If I attempt to add myself via SQL Server Mgt Studio I do not have access to set access to that DB such as this:</p>
  
  <blockquote>
    <p>Reason: Cannot open database
    "SharedServices1_DB" requested by the
    login. The login failed.  Login failed
    for user 'XXXXX\Administrator'.</p>
  </blockquote>
  
  <p>So, what am I missing? Any obvious things I need to do? Any helpful suggestions are welcome. </p>
  
  <p>Thanks</p>
  
  <p>[1]: <a href="http://MSDN" rel="nofollow noreferrer">http://MSDN</a> forum thread</p>
  
  <p>[1]: <a href="http://Telerik" rel="nofollow noreferrer">http://Telerik</a> support thread</p>