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/