Invalid assembly platform or ContentType in file

  • Thread starter Thread starter obrienkev
  • Start date Start date
O

obrienkev

Guest
Hi,

I have an application that is calling another app (dll). Within this second dll is a reference to System.Data.dll

However, I get the error "ERR: Invalid assembly platform or ContentType in file (hr = 0x8007000b)." in FusionLog...

I tested by trying to use the 64bit System.Data dll in Visual Studio 2010 but VS manages to use the 32bit one (C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll)

What do I need to update for this to work?

Thanks!

*** Assembly Binder Log Entry (03/03/2016 @ 16:15:58) ***

The operation failed.
Bind result: hr = 0x8007000b. An attempt was made to load a program with an incorrect format.

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\Advent\Geneva\WFM\WorkflowManager.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:/Windows/Microsoft.NET/Framework/v2.0.50727/System.Data.dll
LOG: Appbase = file:///C:/Program Files (x86)/Advent/Geneva/WFM/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = WorkflowManager.exe
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Program Files (x86)\Advent\Geneva\WFM\WorkflowManager.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/System.Data.dll.
LOG: Assembly download was successful. Attempting setup of file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
ERR: Invalid assembly platform or ContentType in file (hr = 0x8007000b).
ERR: Run-from-source setup phase failed with hr = 0x8007000b.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.

Continue reading...
 
Back
Top