Getting an error related to exe while running the test
-
- Certified Professional
- Posts: 6
- Joined: Fri Nov 14, 2014 3:45 am
Getting an error related to exe while running the test
Hi,
I am getting the attached error while running the test from Ranorex studio. However if I run the compiled exe from Bin/Debug folder then it runs fine.
Please see the attached screen shot.
I am able to run other programs exe from my machine.
I am getting the attached error while running the test from Ranorex studio. However if I run the compiled exe from Bin/Debug folder then it runs fine.
Please see the attached screen shot.
I am able to run other programs exe from my machine.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Getting an error related to exe while running the test
Hi srao,
Unfortunately there is no screenshot attached. May I ask you to re-upload it?
regards,
Markus (S)
Unfortunately there is no screenshot attached. May I ask you to re-upload it?
regards,
Markus (S)
-
- Certified Professional
- Posts: 6
- Joined: Fri Nov 14, 2014 3:45 am
Re: Getting an error related to exe while running the test
Hi,
Please find the screenshot attached now.
-Saket
Please find the screenshot attached now.
-Saket
You do not have the required permissions to view the files attached to this post.
Re: Getting an error related to exe while running the test
Please do a clean re-install of Ranorex.
1. Uninstall Ranorex.
2. Reboot the system.
3. Re-install Ranorex from the executable download here
Also, in the future, please include the following information:
1. Ranorex version you are using.
2. Windows version
3. Error messages that are displayed, if any.
Finally, did you make any changes to the Program.cs file in the project?
1. Uninstall Ranorex.
2. Reboot the system.
3. Re-install Ranorex from the executable download here
Also, in the future, please include the following information:
1. Ranorex version you are using.
2. Windows version
3. Error messages that are displayed, if any.
Finally, did you make any changes to the Program.cs file in the project?
Shortcuts usually aren't...
-
- Certified Professional
- Posts: 6
- Joined: Fri Nov 14, 2014 3:45 am
Re: Getting an error related to exe while running the test
Hi Krstcs,
I performed the steps mention by you but still no luck. And still getting the same error which I have attached in my second post. Here are the other details required:
1) Ranorex Version - 5.2.1
2) Windows Version - Windows XP Professional Version 2002 SP3
Also I am using the trial version as of now. Can the error be because that I am using a trial version?
Strange thing is that I get the error while running the exe from Studio but when I run it directly from BIN/DDEBUG folder then it runs fine.
Regards,
Saket
I performed the steps mention by you but still no luck. And still getting the same error which I have attached in my second post. Here are the other details required:
1) Ranorex Version - 5.2.1
2) Windows Version - Windows XP Professional Version 2002 SP3
Also I am using the trial version as of now. Can the error be because that I am using a trial version?
Strange thing is that I get the error while running the exe from Studio but when I run it directly from BIN/DDEBUG folder then it runs fine.
Regards,
Saket
Re: Getting an error related to exe while running the test
The trial version is exactly the same as the release version, the license is just different, so, no, it isn't because it's a trial version.
Also, could you answer my last question: Did you make any changes to the Program.cs file in the project?
Also, could you answer my last question: Did you make any changes to the Program.cs file in the project?
Shortcuts usually aren't...
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Getting an error related to exe while running the test
Hi saket,
Thank you for the additional information and for trying the steps mentioned by krstcs.
May I ask you to try this hotfix released by Microsoft.com?
Please let me know if this solves your issue.
Regards,
Markus (S)
Thank you for the additional information and for trying the steps mentioned by krstcs.
May I ask you to try this hotfix released by Microsoft.com?
Please let me know if this solves your issue.
Regards,
Markus (S)
-
- Certified Professional
- Posts: 6
- Joined: Fri Nov 14, 2014 3:45 am
Re: Getting an error related to exe while running the test
Hello Support Team,
I applied the hot fix and restarted the machine. But tough luck, the issue still exists.
I have not made any changes to PROGRAM.CS.
Please advise?
Thanks & Regards
Saket Rao
I applied the hot fix and restarted the machine. But tough luck, the issue still exists.
I have not made any changes to PROGRAM.CS.
Please advise?
Thanks & Regards
Saket Rao
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Getting an error related to exe while running the test
Hi saket,
Thank you for trying the Windows Hotfix.
Unfortunately we are not able to reproduce this issue on our side.
Please let me know if the error also appears when you your test without debugger?
This helps us to isolate the problem. Thank you.
Regards,
Markus (S)
Thank you for trying the Windows Hotfix.
Unfortunately we are not able to reproduce this issue on our side.
Please let me know if the error also appears when you your test without debugger?
This helps us to isolate the problem. Thank you.
Regards,
Markus (S)
Re: Getting an error related to exe while running the test
Hello,
Do you happen to have an anti virus on your computer? Can you try disabling it before running your test see if it helps?
Error "Oxc0000142" usually means that a DLL is incompatible or there's a conflicting software that stops yours from running correctly. It usually is the anti virus.
-Matt
Do you happen to have an anti virus on your computer? Can you try disabling it before running your test see if it helps?
Error "Oxc0000142" usually means that a DLL is incompatible or there's a conflicting software that stops yours from running correctly. It usually is the anti virus.
-Matt
-
- Certified Professional
- Posts: 6
- Joined: Fri Nov 14, 2014 3:45 am
Re: Getting an error related to exe while running the test
Hi Matt,
I think you are right, I do have an anti virus.
However cannot disable the anti virus due to security policies.
Also the AppInit DLL is set to one of the Anti Virus DLL in registry. But cannot touch that.
Thanks
Saket
I think you are right, I do have an anti virus.
However cannot disable the anti virus due to security policies.
Also the AppInit DLL is set to one of the Anti Virus DLL in registry. But cannot touch that.
Thanks
Saket
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Getting an error related to exe while running the test
Hi Sakret,
Have you already tried running your test without debugger? Please let me know if the error occurs also when running without debugger.
Thank you.
Markus (S)
Have you already tried running your test without debugger? Please let me know if the error occurs also when running without debugger.
Thank you.
Markus (S)
-
- Certified Professional
- Posts: 6
- Joined: Fri Nov 14, 2014 3:45 am
Re: Getting an error related to exe while running the test
Hi Markus,
I tried without debugger today and it worked absolutely fine.
Interestingly after running once without debugger, normal run was also fine until I added a break point.
Regards,
Saket
I tried without debugger today and it worked absolutely fine.

Interestingly after running once without debugger, normal run was also fine until I added a break point.
Regards,
Saket
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Getting an error related to exe while running the test
Hi Sakret,
Thank you for providing this additional information. I've already forwarded it to our responsible department. They will analyze the issue in more detail.
Thank you for your patience.
Regards,
Markus (S)
Thank you for providing this additional information. I've already forwarded it to our responsible department. They will analyze the issue in more detail.
Thank you for your patience.
Regards,
Markus (S)
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Getting an error related to exe while running the test
Hi everybody,
It seems that we have found a possible solution for this problem.
Please try to delete all files within the folder "C:\WINDOWS\Prefetch" and disable the prefetch mechanism as described here: How to Disable the Prefetcher Component in Windows XP.
This usually solves the problem.
If that does not solve the problem a required DLL is missing.
Please try to run repair install on the C++ runtimes, Ranorex, .NET and Windows XP operating system.
Regards,
Bernhard
It seems that we have found a possible solution for this problem.
Please try to delete all files within the folder "C:\WINDOWS\Prefetch" and disable the prefetch mechanism as described here: How to Disable the Prefetcher Component in Windows XP.
This usually solves the problem.
If that does not solve the problem a required DLL is missing.
Please try to run repair install on the C++ runtimes, Ranorex, .NET and Windows XP operating system.
Regards,
Bernhard