No error info - The user code class has compile error

Ranorex Spy, Recorder, and Studio.
Zee357
Posts: 8
Joined: Tue Jan 05, 2016 7:43 pm

No error info - The user code class has compile error

Post by Zee357 » Thu Jan 07, 2016 5:18 pm

I cannot find meaningful explanation of the error on Build when UserCode fails with message:

Failed to update code for 'C:\QA\KC-Main\Tickets\MainSitePurchaseTickets\MainSitePurchaseTickets\PurchTC3.rxrec'. The user code class has compile errors - C:\QA\KC-Main\Tickets\MainSitePurchaseTickets\MainSitePurchaseTickets\PurchTC3.rxrec

Where do I find the problem causing Build failure.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: No error info - The user code class has compile error

Post by odklizec » Fri Jan 08, 2016 9:21 am

Hi,

It's hard to tell what's wrong without examining the problematic file (ideally entire solution). I would suggest you to compare the actual file (entire solution) with last working state stored in source control (I hope you use one)?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

KennethSmets
Posts: 1
Joined: Thu Jan 28, 2016 2:14 pm

Re: No error info - The user code class has compile error

Post by KennethSmets » Thu Jan 28, 2016 3:10 pm

I had the same issue, and was troubleshooting this for about an hour and couldn't find anything...
until...
I noticed I just forgot the ";" in the "using" statements on top of the code.

Hope this helps