Page 1 of 1

Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.

Posted: Tue Feb 04, 2020 8:43 am
by Manasarudranna
We are using Ranorex 7.1.2 for our endurance testing integrated with our own testing framework and use ranorex only for spying control elements.

Encountering this error since few days, "Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'." while trying to access few elements. I tried copying lognet.dll to Ranorex-> bin but in vain.

Could you kindly help me understand would be deviating and resolve this issue?

Attached Ranorex logs. Let me know if any other info needed.

Regards,
Manasa

Re: Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.

Posted: Tue Feb 04, 2020 9:54 am
by odklizec
Hi,

At first, you Ranorex version is very...very old and no longer supported. You should definitely consider upgrading it with most recent 9.2.1.

Anyway, your problem sounds like a corrupted .Net or VC runtimes? Please examine the list of system requirements for your version and try to reinstall all requirements:
https://www.ranorex.com/help/latest/ran ... uirements/

Re: Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.

Posted: Mon Feb 10, 2020 4:04 am
by Manasarudranna
Thank you for the reply.
I tried with Ranorex 9.2.1 and encountered 'GUIControlLayerException' at the first control element of the script.
It said 'Genereal error: The type intiliazer error for "Ranorex.core.ElementEngine' threw an exception".

I verified control paths with Ranorex 9.1.2 spy which were identified using Ranorex 7.1.2 and its working fine. No other script change done.
I also checked 'copy runtime to output folder' checkbox under settings and copied 'Ranorex.Core.Resolver.dll' to my output folder but in vain again.

Re: Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.

Posted: Mon Feb 10, 2020 6:00 am
by Manasarudranna
Attached ranorex trace logs for an above issue:"GUIControlLayerException"

Re: Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.

Posted: Mon Feb 10, 2020 9:58 am
by odklizec
Hi,

Could you please post a Ranorex snapshot (NOT screenshot) of the problematic element, eventually, post the snapshot of entire app.

At next, the error you are getting is thrown on the same machine, where you designed your test and also if started from Ranorex Studio?

And finally, have you tried to run Studio/test as administrator?

Re: Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.

Posted: Thu Feb 13, 2020 3:39 am
by Manasarudranna
HI,

We have compliant issue in posting snapshot of our app. Can I send it through [email protected]?

Re: Unable to find assembly 'log4net, Version=1.2.15.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a'.

Posted: Thu Feb 13, 2020 2:40 pm
by Support Team
Hi Manasarudranna,

Please create new tickets here: https://www.ranorex.com/support-query/

Looking forward to receiving your request.

Best,
Robert