none
Retrieving the COM class factory for component with CLSID {6568E194-96D8-4035-9087-99E4F75E9ABC} failed due to the following error: 80070005 RRS feed

  • Question

  • We are accessing Adobe Photoshop through ASP.NET application and using following two DLLs:

    [1] Interop.Photoshop.dll
    [2] Interop.PhotoshopTypeLibrary.dll

    If we execute the web application within MS Visual Studio (IDE), its working fine and no such error.

    If we deploy the application in IIS then start producing following error:

    -------------------------
    [UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {6568E194-96D8-4035-9087-99E4F75E9ABC} failed due to the following error: 80070005.]
       _Default.Button1_Click(Object sender, EventArgs e) +45
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
       System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    -------------------------

    Using regedit we have looked for {6568E194-96D8-4035-9087-99E4F75E9ABC} and found several entries. We have assigned full privileges to ASP.NET, IUSER_DW40, NETWORK, SYSTEM users, but still getiing the same issue.

    Please let us know what is missing?

    Thanks & Regards
    Umang
    Tuesday, February 16, 2010 11:34 AM

Answers

  • ASP.net 2.0 and above does not use the ASP.net user.  ASP.net user was used for .Net 1.1 only.

    DCOMCnfg.exe is the ticket to resolution, but you need to assign the launch and activation permissions to the right user.  If your website impersonates, then the permissions go to the users of the website.  If your website doesn't impersonate, then usually it is NETWORK SERVICE the account to grant permissions to.

    Note that the error code that you present is "Access Denied".
    MCP
    Friday, February 19, 2010 6:22 PM

All replies