SignTool Error: CoCreateInstance returned error: 0x80040111

Unanswered SignTool Error: CoCreateInstance returned error: 0x80040111

  • Wednesday, February 20, 2008 9:29 PM
     
     

    Can anyone tell me what the following error messages mean?

     

    Error 1 Cannot publish because a project failed to build.  1 1 JRApp

     

    Error 2 SignTool reported an error 'Failed to sign bin\Release\JRApp.publish\\setup.exe. SignTool Error: CoCreateInstance returned error: 0x80040111

     ClassFactory cannot supply requested class

     

    I have successfully built and published this application from a laptop running Vista to an ftp server.  I then moved (copy and paste) the files for the application to a desktop running Vista.  I am able to build the application on the desktop; however, the ClickOnce deployment fails.  I tried creating a certificate on the desktop, but the application still will not publish.

     

    Any help with this problem would be most appreciated.

All Replies

  • Sunday, March 02, 2008 11:54 AM
     
     

    Get the same error but I have not moved anything ... just made some miner adjustments in my application witch I have updates many times without problem, now I get this error.

    Let me know if you solve it !!!

  • Tuesday, April 08, 2008 2:33 AM
     
     

    Hello,

    I gets also the same error.

    Please let me know if you have a solution.

    Thanks

  • Friday, May 11, 2012 10:29 AM
     
     
    I had the same problem on my machine. In my case, the solution was, to download the capicom_dc_sdk.msi from ms and copy the capicom.dll to the folder, where signtool.exe is located at. There you have to register the capicom.dll with regsvr32. The error was caused by the installation of the Windows 7 SDK wich removed the capicom.dll from my computer. Signtool.exe uses the capicom.dll and could'nt find it any more. That's where the 'CoCreateInstance returned error: 0x80040111' came from.
  • Friday, September 21, 2012 9:40 AM
     
     
    I had the same problem on my machine. In my case, the solution was, to download the capicom_dc_sdk.msi from ms and copy the capicom.dll to the folder, where signtool.exe is located at. There you have to register the capicom.dll with regsvr32. The error was caused by the installation of the Windows 7 SDK wich removed the capicom.dll from my computer. Signtool.exe uses the capicom.dll and could'nt find it any more. That's where the 'CoCreateInstance returned error: 0x80040111' came from.

    Thanks. This has put me on the right path. However, I simply had to re-register C:\Windows\System32\capicom.dll and it worked