Failed to complete setup of assembly (hr = 0x8007000b)

G

Glenn Palomar

Hi,

I have a VB.net application that works in x86 but not in x64 system. I get
BadImageFormatException error when it tries to load a file/assembly. I
captured the error log shown below.

The strange thing is that I have another application that uses the same DLL
and works fine in both systems.

Appreciate any help. I've run out of ideas on how to solve this issue.

Glenn

---------------------------
Workload Part Error
---------------------------
System.BadImageFormatException: Could not load file or assembly
'WinManagement, Version=1.0.0.16881, Culture=neutral, PublicKeyToken=null'
or one of its dependencies. An attempt was made to load a program with an
incorrect format.

File name: 'WinManagement, Version=1.0.0.16881, Culture=neutral,
PublicKeyToken=null'

at Workload.WorkloadPart.Run(ArrayList dataList, Boolean silent, Boolean
parts)

at Workload.modDriver.Main(String[] args)



=== Pre-bind state information ===

LOG: User = ADS\palomag

LOG: DisplayName = WinManagement, Version=1.0.0.16881, Culture=neutral,
PublicKeyToken=null
(Fully-specified)

LOG: Appbase = file:///C:/Workload/

LOG: Initial PrivatePath = NULL

Calling assembly : Workload, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null.

===

LOG: This bind starts in default load context.

LOG: No application configuration file found.

LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).

LOG: Attempting download of new URL file:///C:/Workload/WinManagement.DLL.

ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing
terminated.
 
P

pfc_sadr

dotnet is too verbose; your IDE is expecting more verbosity

I would reccomend just adding a whole assload of more code in it and
see if it works then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top