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.
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.
HP LR/PC Support
If you are customer you can try posting on our internal forums for more personalized support.
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.
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.