none
Windows 8: COMException (0x800702E4)

    Question

  • Hi,

    I have a program which works well in windows 7. And recently I need to run it on windows 8. While running on windows 8, it throws following error:

    "System.Runtime.InteropServices.COMException (0x800702E4): 

    From following code line:

    "QuickTest.Application _qtpApplication = new QuickTest.Application();"

    And in Windows Logs->System, I found an error as follow:


    My program needs to start "QTP" application by COM library. And "QTP" application is configured "Run this program as an administrator" in the property->"Compatibility" tab. For some reason, QTP needs to config this.

    Both the QTP application and my program are same between the windows 7 and windows 8.

    After some research on internet, it says this is caused by my program does not have enough privilege. I have tried following action:

        1. Start my program as Administrator

        2. Go to Component Services->DCOM Config, find the com component, and add permission for "Everyone" in the "Security" tab for "Launch and Activation Permissions", "Access Permissions" and "Configuration Permissions".

        3. I close my windows firewalls.

        4. Close the User Access Control.

    I still got the same error.

    Question: How can I change my settings (or my program) to make it have the privilege to access the com component and start the QTP application?

    Any idea or suggestion will be welcome, very urgent to me.

    Thanks & Best Regards

    Wednesday, November 20, 2013 12:41 PM

Answers

All replies

  • Start your program as admin:

    http://en.wikipedia.org/wiki/User_Account_Control#Requesting_elevation

    C:\Users\André>err 0x800702E4
    # as an HRESULT: Severity: FAILURE (1), FACILITY_WIN32 (0x7), Code 0x2e4
    # for hex 0x2e4 / decimal 740
      ERROR_ELEVATION_REQUIRED                                       winerror.h
    # The requested operation requires elevation.
    # 1 matches found for "0x800702E4"
    


    "A programmer is just a tool which converts caffeine into code"

    Wednesday, November 20, 2013 6:13 PM
  • Hi, Andre

    Thanks for your feedback.

    I have tried starting my program as admin. But it does not work. Still give the same error.

    I also tried the method in the link, change my manifest. But still get the same error.

    After some research, I found my program run in Session 2 (From Task manager). I am thinking whether it work fix when I try to run the program from Session 1. (I know session 0 won't work because UI is not allowed in session 0)

    Regards

    Carson

    Thursday, November 21, 2013 7:10 AM
  • Hi Carson, 

    It appeared to be permission issue. 

    What about trying to enable Built-in administrator and run this program?

    Built-in Administrator Account - Enable or Disable in Windows 8
    http://www.eightforums.com/tutorials/9650-built-administrator-account-enable-disable-windows-8-a.html


    Kate Li
    TechNet Community Support

    Wednesday, November 27, 2013 12:08 PM
    Moderator
  • Hi, Kate

    Sorry to reply this late. Thanks for your feedback.

    I have try the build in administrator way, but still cannot work.

    And current I use another work around for this issue. 

    Really don't know why a program "Run as Admin" cannot access another component in this computer. Admin should have all permission, correct?

    Regards

    Carson

    Friday, December 13, 2013 2:12 PM
  • Hi, 

    Regarding to current situation, I suggest we try to use process monitor to track the behavior during this operation: 

    If we find any access denied for this process, let's try to take ownership of files or registry keys to see what's going on: 

    Solving Access Denied Errors Using Process Monitor

    http://improve.dk/solving-access-denied-errors-using-process-monitor/

     

    Hope these could be helpful.


    Kate Li
    TechNet Community Support

    Monday, December 16, 2013 5:20 AM
    Moderator