.net - Assembly loader confusing behaviour -
i developing vs2012 package (using sdk), implements custom visual designer. solution contains several projects. when run package in vs experimental instance, try open custom visual designer, following exception:
system.io.filenotfoundexception unhandled user code hresult=-2147024894 message=could not load file or assembly 'visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27' or 1 of dependencies. system cannot find file specified. source=system.configuration filename=visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 (...) stacktrace: @ system.configuration.typeutil.gettypeimpl(string typestring, boolean throwonerror) @ system.configuration.typeutil.createinstancerestricted[t](type callingtype, string typestring) @ system.configuration.configurationproperty..ctor(propertyinfo info) @ system.configuration.configurationelement.createconfigurationpropertyfromattributes(propertyinfo propertyinformation) @ system.configuration.configurationelement.createpropertybagfromtype(type type) @ system.configuration.configurationelement.propertiesfromtype(type type, configurationpropertycollection& result) @ system.configuration.configurationelement.createconfigurationpropertyfromattributes(propertyinfo propertyinformation) @ system.configuration.configurationelement.createpropertybagfromtype(type type) @ system.configuration.configurationelement.propertiesfromtype(type type, configurationpropertycollection& result) @ system.configuration.configurationelement.get_properties() @ system.configuration.configurationelement.set_item(string propertyname, object value) @ visualdesigner.configuration.xmlconfiguration.element.flowsection.set_xmlns(string value) in c:\users\wjarema\repositories\visualdesigner\src\configuration\xmlconfiguration\element\flowsection.cs:line 20
it looks assembly binding problem, decided consult fusion log viewer additional info assembly loader error.
what strange, fusion log says when try open visual designer, there four attempts load visualdesigner.configuration
- two times successfully, failed twice:
*** assembly binder log entry (2013-10-07 @ 15:43:48) *** operation successful. bind result: hr = 0x0. operation completed successfully. assembly manager loaded from: c:\windows\microsoft.net\framework\v4.0.30319\clr.dll running under executable c:\program files (x86)\microsoft visual studio 11.0\common7\ide\devenv.exe --- detailed error log follows. === pre-bind state information === log: displayname = visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 (fully-specified) log: appbase = file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/ log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = devenv.exe calling assembly : visualdesigner.designer, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27. === log: bind starts in loadfrom load context. wrn: native image not probed in loadfrom context. native image probed in default load context, assembly.load(). log: using application configuration file: c:\users\wjar~1\appdata\local\temp\dev18a5.tmp log: using host configuration file: log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: post-policy reference: visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 log: gac lookup unsuccessful. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration/visualdesigner.configuration.dll. (...) log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/users/wjarema/appdata/local/microsoft/visualstudio/11.0exp/extensions/flow designer package/1.0/visualdesigner.configuration.dll. log: assembly download successful. attempting setup of file: c:\users\wjarema\appdata\local\microsoft\visualstudio\11.0exp\extensions\flow designer package\1.0\visualdesigner.configuration.dll log: entering run-from-source setup phase. log: assembly name is: visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 log: where-ref bind codebase not match found in default context. keep result in loadfrom context. log: binding succeeds. returns assembly c:\users\wjarema\appdata\local\microsoft\visualstudio\11.0exp\extensions\flow designer package\1.0\visualdesigner.configuration.dll. log: assembly loaded in loadfrom load context. *** assembly binder log entry (2013-10-07 @ 15:43:48) *** operation successful. bind result: hr = 0x0. operation completed successfully. assembly manager loaded from: c:\windows\microsoft.net\framework\v4.0.30319\clr.dll running under executable c:\program files (x86)\microsoft visual studio 11.0\common7\ide\devenv.exe --- detailed error log follows. === pre-bind state information === log: displayname = visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 (fully-specified) log: appbase = file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/ log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = devenv.exe calling assembly : visualdesigner.designer, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27. === log: bind starts in loadfrom load context. wrn: native image not probed in loadfrom context. native image probed in default load context, assembly.load(). log: using application configuration file: c:\users\wjar~1\appdata\local\temp\dev18a5.tmp log: using host configuration file: log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: post-policy reference: visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 log: gac lookup unsuccessful. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/users/wjarema/appdata/local/microsoft/visualstudio/11.0exp/extensions/flow designer package/1.0/visualdesigner.configuration.dll. log: assembly download successful. attempting setup of file: c:\users\wjarema\appdata\local\microsoft\visualstudio\11.0exp\extensions\flow designer package\1.0\visualdesigner.configuration.dll log: entering run-from-source setup phase. log: assembly name is: visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 log: where-ref bind codebase not match found in default context. keep result in loadfrom context. log: binding succeeds. returns assembly c:\users\wjarema\appdata\local\microsoft\visualstudio\11.0exp\extensions\flow designer package\1.0\visualdesigner.configuration.dll. log: assembly loaded in loadfrom load context. *** assembly binder log entry (2013-10-07 @ 15:43:48) *** operation failed. bind result: hr = 0x80070002. system cannot find file specified. assembly manager loaded from: c:\windows\microsoft.net\framework\v4.0.30319\clr.dll running under executable c:\program files (x86)\microsoft visual studio 11.0\common7\ide\devenv.exe --- detailed error log follows. === pre-bind state information === log: displayname = visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 (fully-specified) log: appbase = file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/ log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = devenv.exe calling assembly : (unknown). === log: bind starts in default load context. log: using application configuration file: c:\users\wjar~1\appdata\local\temp\dev18a5.tmp log: using host configuration file: log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: gac lookup unsuccessful. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration/visualdesigner.configuration.exe. log: probing urls attempted , failed. *** assembly binder log entry (2013-10-07 @ 15:43:48) *** operation failed. bind result: hr = 0x80070002. system cannot find file specified. assembly manager loaded from: c:\windows\microsoft.net\framework\v4.0.30319\clr.dll running under executable c:\program files (x86)\microsoft visual studio 11.0\common7\ide\devenv.exe --- detailed error log follows. === pre-bind state information === log: displayname = visualdesigner.configuration, version=0.0.0.0, culture=neutral, publickeytoken=c2639211081ade27 (fully-specified) log: appbase = file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/ log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = devenv.exe calling assembly : (unknown). === log: bind starts in default load context. log: using application configuration file: c:\users\wjar~1\appdata\local\temp\dev18a5.tmp log: using host configuration file: log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: gac lookup unsuccessful. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration/visualdesigner.configuration.dll. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/publicassemblies/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/microsoft/templateproviders/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/commonextensions/platform/debugger/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/visualdesigner.configuration/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration.exe. log: attempting download of new url file:///c:/program files (x86)/microsoft visual studio 11.0/common7/ide/privateassemblies/datacollectors/x86/visualdesigner.configuration/visualdesigner.configuration.exe. log: probing urls attempted , failed.
i have no idea why happens. why visualdesigner.configuration
at first loaded successfully, thereafter loading of assembly causes failures?
i wonder why there stated in logs calling assembly : (unknown).
in case of assembly binding failures?
Comments
Post a Comment