title: Error "8000401a" while C# Excel generation
body: <p>I work on a <code>MVC</code> web application. This application has <code>quartz.net</code> job that start along with the application on deployment. quartz(third party dlls) was only being used for scheduling. This scheduled job is coded on C#. This job generates excel reports and emails it to the stake holders. <code>Inorder</code> to create and write data to excel i am depending on Microsoft <code>Interop</code> Assemblies. This job now runs fine on local(development box).But when its deployed to a remote application server, it throws an exception  as follows:</p>
  
  <blockquote>
    <p>Retrieving the COM class factory for component with CLSID
    {00024500-0000-0000-C000-000000000046} failed due to the following
    error: 8000401a The server process could not be started because the
    configured identity is incorrect. Check the username and password.
    (Exception from HRESULT: 0x8000401A).</p>
  </blockquote>
  
  <p>Observation:
  If i log onto the remote server (deployment server) at the time of excel generation, the excel gets emailed successfully. Problem occurs when i logoff from the Remote application server. I have searched for a solution, but nothing worked out. Anticipating for some direction. Thanks in advance.</p>