Re: error failed to compile virtual user (842 Views)
Reply
Occasional Advisor
Posts: 12
Registered: ‎09-15-2008
Message 1 of 9 (902 Views)

error failed to compile virtual user

I get this error when trying to run a test using .net protocol. This error only shows up when I try to inject a Load Generator other than the controller.  This script works when using the controller as the Load Generator. The script resides on the Controller.

Frequent Advisor
Posts: 62
Registered: ‎05-09-2013
Message 2 of 9 (869 Views)

Re: error failed to compile virtual user

.Net framework installed on the LG?

Occasional Advisor
Posts: 12
Registered: ‎09-15-2008
Message 3 of 9 (847 Views)

Re: error failed to compile virtual user

Yep sure is. 3.5 still but it is installed.
HP Expert
Posts: 736
Registered: ‎09-14-2011
Message 4 of 9 (842 Views)

Re: error failed to compile virtual user

If when you recorded the script a lot of events got recorded it may have needed filters, but if there was more to that error you may want to check for warnings as well when you try to compile it may tell you what the issue is.

 

Regards,

Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Visitor
Posts: 2
Registered: ‎09-20-2012
Message 5 of 9 (841 Views)

Re: error failed to compile virtual user

Hi,

 

Even i am facing the same issue. i am able to run the .net script on vugen and when i try to run it on Performance center i am getting the error. I check for .net framework on LG and it is available.

 

Please let me know if you get the solution.

 

Thanks.

Valued Contributor
Posts: 117
Registered: ‎04-30-2012
Message 6 of 9 (834 Views)

Re: error failed to compile virtual user

if you have Vugen on controller machine, just do a compilation from VUgen and see how it's behaving. If you get any error from VUgen also then few files might be missed while moving the script to the controller.

 

On performance center front i am not very sure.

 

Thanks, Ajay

Occasional Advisor
Posts: 12
Registered: ‎09-15-2008
Message 7 of 9 (815 Views)

Re: error failed to compile virtual user

Yes I have VuGen on LG Same version same patch level. The script compiles and runs flawlessly on the LG when running through VuGen. But when running test scenario the LG will not compile the script.

Occasional Advisor
Posts: 12
Registered: ‎09-15-2008
Message 8 of 9 (807 Views)

Re: error failed to compile virtual user

Anand and Ajay I have resolved the issue. If I copy the entire script directory over to the Agent service temp directory netdir (this is where the scenario will try to copy the script files when running a test.  It appears that s lot of the dll's and associated files were not getting copied correctly when running a test. After manually copying the files the script compiled and ran fine.

Visitor
Posts: 2
Registered: ‎09-20-2012
Message 9 of 9 (790 Views)

Re: error failed to compile virtual user

Mark, Thanks for your reply. I am using ALM(PC). As you suggested i checked for the Temp path on the LG. But i am not sure where exactly we need to copy the script.

 

Here is the temp path i found C:\Users\user_name\AppData\Local\Temp. Please let me know if this is the path or any other.

 

Thanks in advance.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.