Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Help - get "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) "

$
0
0

I am attempting to use a DLL created in Visual Fortran 2011 -- XE12.0, whenever the C# calling routine attempts to load the DLL I get the following error. "

An unhandled exception of type 'System.BadImageFormatException' occurred in expand_MISC.exe

Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

I have created simplified DLLs and C# routines to attempt to find a work around but all fail with same error.

 

The debug output of a recent attempt was:

 

'expand_MISC.exe': Loaded 'C:\FORTRAN\Work_Source\Intel_qikest\ClassLibrary1\ClassLibrary1\bin\Debug\expand_MISC.exe', No native symbols in symbol file.

'expand_MISC.exe': Loaded 'C:\Windows\System32\ntdll.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\mscoree.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\kernel32.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\apphelp.dll', Exports loaded.

'expand_MISC.exe': Unloaded 'C:\Windows\System32\apphelp.dll'

'expand_MISC.exe': Loaded 'C:\Windows\System32\advapi32.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\sechost.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\gdi32.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\user32.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\lpk.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\usp10.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\imm32.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\msctf.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\msvcr110_clr0400.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\abf62e6545d2802fc60286678a67e6bf\mscorlib.ni.dll', Cannot find or open the PDB file

'expand_MISC.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'expand_MISC.exe': Loaded 'C:\Windows\System32\ole32.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Exports loaded.

'expand_MISC.exe' (Managed (v4.0.30319)): Loaded 'C:\FORTRAN\Work_Source\Intel_qikest\ClassLibrary1\ClassLibrary1\bin\Debug\expand_MISC.exe', Symbols loaded.

'expand_MISC.exe': Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Exports loaded.

'expand_MISC.exe': Loaded 'C:\FORTRAN\Work_Source\Intel_qikest\MISC2BOM3\MISC2BOM3\Debug\MISC2BOM3.dll', Binary was not built with debug information.

'expand_MISC.exe': Unloaded 'C:\FORTRAN\Work_Source\Intel_qikest\MISC2BOM3\MISC2BOM3\Debug\MISC2BOM3.dll'

'expand_MISC.exe': Loaded 'C:\FORTRAN\Work_Source\Intel_qikest\MISC2BOM3\MISC2BOM3\Debug\MISC2BOM3.dll', Binary was not built with debug information.

'expand_MISC.exe': Unloaded 'C:\FORTRAN\Work_Source\Intel_qikest\MISC2BOM3\MISC2BOM3\Debug\MISC2BOM3.dll'

First-chance exception at 0x000007fefd15940d (KernelBase.dll) in expand_MISC.exe: Microsoft C++ exception: EEException * __ptr64 at memory location 0x001fddd8..

A first chance exception of type 'System.BadImageFormatException' occurred in expand_MISC.exe

'expand_MISC.exe': Loaded 'C:\Windows\System32\version.dll', Exports loaded.

An unhandled exception of type 'System.BadImageFormatException' occurred in expand_MISC.exe

Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

The thread 'Win64 Thread' (0xb8c) has exited with code -1073741510 (0xc000013a).

The thread 'Main Thread' (0x2720) has exited with code -1073741510 (0xc000013a).

The thread 'Win64 Thread' (0x24c0) has exited with code -1073741510 (0xc000013a).

The thread 'Win64 Thread' (0x4a8) has exited with code -1073741510 (0xc000013a).

The program '[8164] expand_MISC.exe: Native' has exited with code -1073741510 (0xc000013a).

The program '[8164] expand_MISC.exe: Managed (v4.0.30319)' has exited with code -1073741510 (0xc000013a).


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>