By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,285 Members | 1,269 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,285 IT Pros & Developers. It's quick & easy.

Load assembly exception

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.