473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Load assembly exception

Dear all,
I created a mixed mode exe assembly. Now I try to load a class from this
assembly within the VB project. I get following error:

Unhandled Exception: System.IO.FileLoadException: Attempt to load an
unverifiabl
e executable with fixups (IAT with more than 2 sections or a TLS section.)
(Exce
ption from HRESULT: 0x80131019)
at ConsoleApplication1.Module1.Main()

Any ideas, how to resolve this?
Thanks,
Boni
Feb 10 '06 #1
2 1844
Hi Boni!
I created a mixed mode exe assembly. Now I try to load a class from this
assembly within the VB project. I get following error:

Unhandled Exception: System.IO.FileLoadException: Attempt to load an
unverifiabl
e executable with fixups (IAT with more than 2 sections or a TLS section.)
(Exce
ption from HRESULT: 0x80131019)
at ConsoleApplication1.Module1.Main()


You can try the suggestions at:
http://msdn2.microsoft.com/en-us/library/dbe81ttk.aspx

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Feb 11 '06 #2
Hi Jochen,
meanwhile I found an answer in internet. Also I think it also should be
added to the web page, which you pointed.
The reason is following:
I had an exe assemly (i.e. myasm.exe). I wanted to use this assembly both
for stand alone execution and for class store.
Now I tried to reference this exe from other assembly and at run time get
this error.
In internet I found that compiler makes optimization thinking that exe will
be used as stand alone and it is no more possible to use it as a class
store.
And indeed I compiled it to dll and all works. Also I am interested to
switch those optimisations off, because I would like to have one exe for
both cases.
But I can't find if it is possible and which compiler option it is.
If anybody knows would you please share.
Thanks a lot.
Boni
"Jochen Kalmbach [MVP]" <no********************@holzma.de> schrieb im
Newsbeitrag news:uF**************@tk2msftngp13.phx.gbl...
Hi Boni!
I created a mixed mode exe assembly. Now I try to load a class from this
assembly within the VB project. I get following error:

Unhandled Exception: System.IO.FileLoadException: Attempt to load an
unverifiabl
e executable with fixups (IAT with more than 2 sections or a TLS
section.) (Exce
ption from HRESULT: 0x80131019)
at ConsoleApplication1.Module1.Main()


You can try the suggestions at:
http://msdn2.microsoft.com/en-us/library/dbe81ttk.aspx

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Feb 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lauren Hines | last post by:
Hello, I have read numerous post stating that the only way to unload an assembly (DLL in my case) is to create a separate AppDomain, load the assembly, then unload it by calling AppDomain.Unload....
1
by: Greg Patrick | last post by:
My problem: I load an some assemblies (strong named) from a byte array using Assembly.Load(byte). They load fine. But one one of them is actually accessed, it's referenced assemblies can't be...
2
by: Razzie | last post by:
Hey all, I'm working on this project where I'm dynamically loading an assembly. Basically what I want is that I can just replace my old dll file with a new one without having to do anything...
0
by: mathlec | last post by:
I have 2 WebApplication project (dummy and dummy2). The first is trying to load a UserControl compiled in the second. I've set up the application as follow: \_(Virtual directory) .:Modules:.
2
by: Eric Falsken | last post by:
Eric Falsken <eric@db4o.com> wrote on 04 Dec 2005: > craigkenisston@hotmail.com wrote on 19 Nov 2005: > >> I'm working in the migration of an asp.net application in 1.1 to 2.0. >> I'm new to...
0
by: qiang | last post by:
Hi everyone, Could you please take a look at an exception for ASP.NET application? My ASP.NET application is using Infragistics WebChart control. I encounter an exception below when...
6
by: Steve | last post by:
I'm playing with late binding and trying a very simple test to load an assembly In my "Host" application I have this code: <code> string modulePath =...
4
by: Richard Bysouth | last post by:
Hi I am running a site built on asp.net 1.1 on a windows server 2003 (which is running asp.net 2.0 - shared hosting at my webhost). The site is low traffic and very simple (mostly static text...
1
by: Doctorslicer | last post by:
Hi All, We have a large multi project application in MFC that we are converting to managed code. We have been able to add /CLR to all of the projects and have compiled successfully but encounter...
2
by: David Thielen | last post by:
So we have moved our app from .NET version 2.X in IIS6 to a Windows 2008 Server running IIS7. We have copied all files to the Windwardreports\apps directory and that apps directory has been...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.