Windows error 0x80131019, -2146234343

Detailed Error Information

COR_E_FIXUPSINEXE[1]

Message"Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.)"
Comment Attempt to load an unverifiable exe with fixups (IAT with more than 2 sections or a TLS section)

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code4121 (0x1019)

Questions

19votes
2answers

Exception with Resolving assemblies: Attempt to load an unverifiable executable with fixups

I'm embedding required assemblies to my project and resolving them on runtime with AppDomain.CurrentDomain.AssemblyResolve event. All works okay except irrKlang's .net4-wrapper, which throws an exception if i try so; System.IO.FileLoadException: Attempt to load an unverifiable executable with fixups (IAT with more than 2 sections or a TLS section.) (Exception from [...] read more
c#
assembly-resolution
3votes
2answers

SignalR WebApp.Start(url) doesn't like other exe's in folder?

My WebApp.Start method throws a System.IO.FileLoadException when other exe's are in the same folder. I have no clue why this is happening and its driving me nuts. Any help is appreciated. //Calling webapp.start string url = "http://*:8080/"; SignalRServer = WebApp.Start(url); //My Owin Startup Class class Startup { public void Configuration(IAppBuilder [...] read more
c#
.net
signalr
owin
signalr-hub
3votes
1answer

Call backend .NET dll from ASP.NET Web api

I building client server app. The business logic is build in C++ /CLI. In the same solution I have ASP.NET Web api project. For logon i have method in backend. For logon i need to do this using Back_End; public IHttpActionResult Logon([FromBody]Logon_Request model) { string Answer = Back_End.Logon(model.Name, model.Password); } [...] read more
c#
c++
asp.net
visual-studio
asp.net-web-api
2votes
0answers

Merge C# and C++ code into single EXE

I have a small WPF application written in C# using VS2008. For one particular task I would like to use some C++/CLI code (since it requires heavy native interop). I know I can compile the C++/CLI code as a DLL and then reference this from the C# app, but that [...] read more
c#
.net
dll
linker
c++-cli
2votes
0answers

assembly load error on C# exe which has been modified to export a variable

Working on a C# .NET application for Windows Desktop which does 3D rendering. On laptops with dual video card configs (integrated Intel video and NVidia for example), the problem can arise that the user has not changed the NVidia control panel setting to prefer the NVidia card. As a result [...] read more
c#
reflection
nvidia
cil
optimus
2votes
3answers

Exception occured While loading dynamically EXE assembly in C++/CLI (Could not load file or assembly ', Version=1.0.3836.39802 ...)

I am facing an exception in C++/CLI while dynamically loading assembly which itself creates an EXE in C++/CLI managed mode using Assembly.Load. It successfully loads a DLL assembly, but fails to load EXE assembly and generates the following exception: > An unhandled exception of type 'System.IO.FileLoadException' occurred in > TestManager.dll [...] read more
.net
visual-c++
c++-cli
assemblies
mixed-mode
1vote
0answers

Creating single exe with Aforge.Video.FFMPEG not working -Costura Fody c#

I was able to create single exe for my WinForm app using Costura and Fody (Any CPU .NET 4). All dll files used in my project are placed in a 'dll' folder inside project. And Build Action of each dll is set to none. Then each dll in this folder [...] read more
c#
ffmpeg
aforge
1vote
0answers

Load CLR assembly (with unmanaged code) as embedded resource in C# exe

I would like to have a CLR assembly stored as an embedded resource within my C# application and loaded during runtime. I included the dll as an embedded resource and attempted to retrieve the data bytes during runtime and load the assembly as follows using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("MyNamespace.MyCLRAssembly.dll")) { [...] read more
c#
clr
embedded-resource
unmanaged
managed
1vote
0answers

Is it possible to reference external assembly with native dependencies in Azure function?

I'm getting following exception when doing aforementioned: > 2017-12-10T12:40:39.771 Exception during runtime resolution of assembly > 'Affdex, Version=3.4.1.1320, Culture=neutral, PublicKeyToken=null': > > 'System.IO.FileLoadException: Could not load file or assembly 'Affdex, > Version=3.4.1.1320, Culture=neutral, PublicKeyToken=null' or one of its > dependencies. Attempt to load an unverifiable executable with fixups (IAT with [...] read more
azure
azure-functions
azure-functions-runtime
0votes
1answer

Installshield Development Error during the Installation process

I've been stuck by a problem for the past couple days that makes no sense to me. My installer builds fine in the Installshiled IDE but when it is about to finish the installation, int gets two errors then rollbacks: installation failure. Right when the install bar is at about [...] read more
installation
project
installshield
0votes
0answers

Unload mixed mode assembly

I have native windows application developed mainly in C++. I would like to put some C# / UI components on top of that application. But main application is rather heavy to start up and debug, I would like for C# to be polite to application and it would be possible [...] read more
c#
c++
mixed-mode
0votes
2answers

How to merge System.Data.SQLite.DLL in EXE without using Assembly.LoadFile()

System.Data.SQLite.DLL is a mixed code DLL. It contains C and C#. I know how to add it as Embedded Resource, write it to a temp file and use Assembly.LoadFile() to load it. My question is there any alternative way to load it without writing it to a temp file? I [...] read more
c#
system.data.sqlite

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0