Ask a Question

Error code: 0x8007007e on running tcAgPatcher utility (standalone)

geoffrey_loh
Occasional Contributor

Error code: 0x8007007e on running tcAgPatcher utility (standalone)

We are using testcomplete 9.10 tcAgPatcher utility created by the 'CopyWithLibs.bat' file in ...\Open Apps\Silverlight.



However upon using this utility to run against our xap file on our build bot, we are getting a error pop-up with the message: 



An error occurred.

Error code: 0x8007007e.



We appear to be getting this message on some machines whereas on some machines it goes through fine (all of them don't have testcomplete installed).



Are there any extra dependencies required for this tool to work that the '
CopyWithLibs.bat' is not copying over?
9 REPLIES 9
geoffrey_loh
Occasional Contributor

The following image is the output when running the tcAgAgent9.dll through MSIL Disassembler





TanyaYatskovska
SmartBear Alumni (Retired)


Hi Geoff,


 


TestComplete should be installed on the computer where you are patching your Silverlight app. Actually, you can do it once and after that copy the patched .xap file to the needed computer.


BTW, TestComplete can automatically patch Silverlight apps. This will allow you not to use the tcAgPatcher utility. Refer to the Default Approach section of the "Preparing In-Browser Silverlight Applications for Testing" article.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



geoffrey_loh
Occasional Contributor

Hi Tanya, we still seem to be getting the error after installing TestComplete on the computer where we are patching the xap file. Do you know if there are other dependencies required on the system to run the patcher? e.g. silverlight etc...
geoffrey_loh
Occasional Contributor

We just tried using the patcher after having TestComplete open (with a floating license and it worked) so:



1. It works on some machines without TestComplete installed

2. It still doesn't work on some machines with TestComplete installed unless you acquire a license and start testcomplete



Our aim in the end is still to get the patcher running on the build server so from these results we can't conclude that installing testcomplete on the build server will resolve this.
TanyaYatskovska
SmartBear Alumni (Retired)


Hi Geoff,


 


Are you patching the same xap file on each computer? Actually, you can patch it once and move the patched file on any computer (even on your server). The modified file will contain special modules that help TestComplete get access to internal objects. Thus, there is no need to run the tcAgPatcher utility on each computer.


 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



geoffrey_loh
Occasional Contributor


The issue is that we're wanting  to patch the file on the build server itself to automate the process. We thought the tcAgPatcher utility created with the batch file was supposed to do this but apparently there are other dependencies required and we can't confirm that these dependencies are resolved by installing testcomplete as shown in the previous post. We will have to stick with the manual process of patching the file on a PC we know it works on and then moving it across in that case...

We tried extracting the tcAgPatcher utility and its required dlls using CopyWithLibs.bat thats in the same folder.

Running the utility from the extracted location we are getting a  0x8007007e error.  Is there a way we can have that working without installing TestComplete on the build server?

 

 

There is a bug in "C:\Program Files (x86)\SmartBear\TestComplete 14\Open Apps\Silverlight\CopyWithLibs.bat"

That script doesn't copy two required libraries: 

  • msxml4a.dll
  • msxml4r.dll

You have to update CopyWithLibs.bat

CopyWithLibs.png

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @COMFOR,

Thanks for sharing your workaround with us! Do you mind sending this issue to our Support Team so that we could update the file? You can reach out to them here:

https://support.smartbear.com/message/?prod=TestComplete

 

P.S. reading my own post from 2013 is a great 'hi' from the past 🙂

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



cancel
Showing results for 
Search instead for 
Did you mean: