CoCreateInstance returns 0x80070005 access denied on Windows 7 only

已答复 CoCreateInstance returns 0x80070005 access denied on Windows 7 only

  • Friday, June 08, 2012 9:13 PM
     
     

    We have an application written way back in VS 6 days that we are not in a position to rewrite just yet.  It is working fine when installed on Windows XP and Windows 2003 Server, but on Windows 7 it fails at the point of attempting to create a COM object that is part of the solution.

    We can't seem to figure out what in Windows 7 is causing the access denied issue and how to resolve it.  We found some articles regarding allowing DCOM to have full control for "everyone".  Trying this has not helped.  We have tried running the application as "Run as Administrator" with no luck.

    Anyone have any idea?

All Replies

  • Saturday, June 09, 2012 7:29 AM
     
     Answered

    1. I am afraid that there no simple backward compatibility path. Try to run application in legacy compatibility mode.

    2. For more help the better place may be MSDN forum. Give more information there, not fragments only.

    3. If you want to dig deeper, use Process Monitor (Sysinternals)

    Regards

    Milos