Core.Winapi error at runtime

Class library usage, coding and language questions.
Posts: 3
Joined: Mon Apr 30, 2018 9:56 am

Core.Winapi error at runtime

Post by tenjoname » Tue May 29, 2018 10:40 am


We are currently working on an internal tool using ranorex Dlls. We've had a request to incorporate the dlls into the Exe. So far we have achived a successful build using Fody-Costura package in Studio, however at runtime we are seeing this error:

Error Exception : Could not load file or assembly 'Ranorex.Core.WinApi, Version=, Culture=neutral, PublicKeyToken=b798506b574ebc9a' or one of its dependencies. Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from HRESULT: 0x80131019)

we seem to be including all we should for the code to work. And referring to the correct dlls respectively for x86 or x64. (I'm working on the x64 version). I'm not quite sure how to debug further from here?

Any thoughts appreciated (other than making sure they files are local location to the exe, which is what we are trying to avoid)


User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Core.Winapi error at runtime

Post by Support Team » Tue May 29, 2018 4:52 pm

Hi tenjoname,

Unfortunately, this is not possible at this time due to the fact that most of the Ranorex libraries reference each other. When embedding them into the exe, the location the Ranorex libraries look for each other is no longer valid. I recommend creating a new feature request on our User Voice platform as I can see this being a useful feature. It means more when the request comes from you directly than from me.

I hope this helps!