473,394 Members | 1,640 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,394 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 1330
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

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...
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...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.