.net - Assembly binding error - fusion log and dependency browser mismatch -


i'm chasing down assembly loading/binding error has popped recently. during investigation i've found confusing contradiction (assuming i'm parsing fusion log correctly).

the exception thrown application @ startup states:

{"could not load file or assembly 'microsoft.practices.compositeui, version=1.0.51205.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. located assembly's manifest definition not match assembly reference. (exception hresult: 0x80131040)":"microsoft.practices.compositeui, version=1.0.51205.0, culture=neutral, publickeytoken=31bf3856ad364e35"}

some recent project changes made should not require named assembly "microsoft.practices.compositeui". after confirming solution projects indeed referencing unsigned assemblies fired dependency browser make sure wasn't missing anything. checked out , confirmed didn't have "old" references old assemblies. of course cleaned , rebuilt project well.

i researched further , fired fusion log viewer (fuslogvw.exe) , configured display binding errors. viewed log , found binding error. detail log confusion starts; lists "calling assembly" assembly has no bindings (that can determine) missing assembly. ah, it's hard explain. here log:

* assembly binder log entry (11/15/2010 @ 7:00:18 pm) *

the operation failed.

bind result: hr = 0x80131040. no description available.

assembly manager loaded from: c:\windows\microsoft.net\framework\v2.0.50727\mscorwks.dll running under executable c:\program files\pmt\office app\1.1.1.7\officeapp.exe

--- detailed error log follows.

=== pre-bind state information ===

log: user = pmd\sklett

log: displayname = microsoft.practices.compositeui, version=1.0.51205.0, culture=neutral, publickeytoken=31bf3856ad364e35 (fully-specified)

log: appbase = file:///c:/program files/pmt/office app/1.1.1.7/

log: initial privatepath = null

log: dynamic base = null

log: cache base = null

log: appname = officeapp.exe

calling assembly : microsoft.practices.enterpriselibrary.common, version=4.1.0.0, culture=neutral, publickeytoken=31bf3856ad364e35.

===

log: bind starts in default load context.

log: using application configuration file: c:\program files\pmt\office app\1.1.1.7\officeapp.exe.config

log: using machine configuration file c:\windows\microsoft.net\framework\v2.0.50727\config\machine.config.

log: post-policy reference: microsoft.practices.compositeui, version=1.0.51205.0, culture=neutral, publickeytoken=31bf3856ad364e35

log: gac lookup unsuccessful.

log: attempting download of new url file:///c:/program files/pmt/office app/1.1.1.7/microsoft.practices.compositeui.dll.

log: assembly download successful. attempting setup of file: c:\program files\pmt\office app\1.1.1.7\microsoft.practices.compositeui.dll

log: entering run-from-source setup phase.

log: assembly name is: microsoft.practices.compositeui, version=1.0.51205.0, culture=neutral, publickeytoken=null

wrn: comparing assembly name resulted in mismatch: public key token

err: assembly reference did not match assembly definition found.

err: failed complete setup of assembly (hr = 0x80131040). probing terminated.

now calling assembly "microsoft.practices.enterpriselibrary.common" not have listed (via dependency browser) dependencies "microsoft.practices.compositeui". not that, shouldn't have any.

the fusion log has stopped me in tracks, fusion log has led confusion! ;0)

hopefully supplied enough info wise expert clue me in on i'm missing.

i'm not sure if answer appropriate or additional comment, please excuse me if have chosen incorrectly. ;0)

the news after reboot (power loss actually) problem went away. don't know how or why solved it, meticulous in researching problem sure enough reboot made go away!

thanks jeffn825 sticking , offering assistance, voted of comments.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -