title: In SQL Server 2008 R2 error occurred while start debugging, Error HRESULT E_FAIL has been returned from a call to a COM component. (mscorlib)
body: <p>I am working on SQL Server 2008 R2 Express, when I am using SQL Server debugging feature from client pc, this error occurs:</p>
  
  <blockquote>
    <p>The EXECUTE permission was denied on the object 'sp_enable_sql_debug', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)</p>
  </blockquote>
  
  <p>My user name is 'HALI' and permission is assigned to me is 'public' and 'db_Owner',</p>
  
  <p>now after this error I have assigned all permissions available. And all server roles.</p>
  
  <p>Now at this time I got new error message, </p>
  
  <blockquote>
    <p>Error HRESULT E_FAIL has been returned from a call to a COM component. (mscorlib)</p>
  </blockquote>
  
  <p>Now what the solution would be for this error.</p>