Micro Focus QTP (UFT) Forums
System.Runtime.InteropServices.COMException - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: System.Runtime.InteropServices.COMException (/Thread-System-Runtime-InteropServices-COMException)



System.Runtime.InteropServices.COMException - lauretamisier - 08-13-2009

Hello,
I use the following target ANT :

Code:
<target name="runtScripts" >
        <exec dir="C:\Program Files\LoFAT-QTP Framework" executable="C:\Program Files\LoFAT-QTP Framework\QTPInterface.exe" os="Windows XP">
            <arg line="${config.path}"/>
        </exec>
    </target>

When I use this target I have the following error when QTP is closed:

[exec] Unhandled Exception: System.Runtime.InteropServices.COMException (0x80004005): Erreur non sp‚cifi‚e (Exception from HRESULT: 0x80004005 (E_FAIL))
[exec] at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
[exec] at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
[exec] at QTPInterface.modInterface.ExecuteTestCase(String strTestCasePath)
[exec] at QTPInterface.modInterface.Main(String[] sArgs)
[exec] Result: -532459699

I have this error only on one PC. Do you have an idea which configuration give this error ?

Thanks for your help