PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Failed to complete setup of assembly (hr = 0x8007000b)

Reply

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

 
Thread Tools Rate Thread
Old 12-02-2007, 10:27 PM   #1
Glenn Palomar
Guest
 
Posts: n/a
Default Failed to complete setup of assembly (hr = 0x8007000b)


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.


---------------------------
OK
---------------------------


  Reply With Quote
Old 14-02-2007, 07:37 AM   #2
pfc_sadr@hotmail.com
Guest
 
Posts: n/a
Default Re: Failed to complete setup of assembly (hr = 0x8007000b)

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




On Feb 12, 2:27 pm, "Glenn Palomar" <glenn.palo...@autodesk.com>
wrote:
> 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.
>
> ---------------------------
> OK
> ---------------------------



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off