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
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
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
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
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
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
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
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
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
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
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
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