.net - Fusion attempting to load assembly that's not referenced anywhere -


when tried sign project discovered fusion attempts load dlls not exist. fail, don't understand why tries load these dlls. cannot find references these dlls anywhere in different projects use.

fuslogvw gave following output 1 of dlls:

*** assembly binder log entry  (28-9-2015 @ 16:29:53) ***  operation failed. bind result: hr = 0x80070002. system cannot find file specified.  assembly manager loaded from:  c:\windows\microsoft.net\framework64\v4.0.30319\clr.dll running under executable  d:\projects\<snip>.vshost.exe --- detailed error log follows.   === pre-bind state information === log: displayname = recentitemsmanager.xmlserializers, version=1.0.0.0, culture=neutral, publickeytoken=b9588042c0f5ae4b, processorarchitecture=msil  (fully-specified) log: appbase = file:///d:/projects/<snip>/bin/debug/ log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = <snip>.vshost.exe calling assembly : system.xml, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089. === log: bind starts in default load context. log: using application configuration file: d:\projects\<snip>\bin\debug\<snip>.vshost.exe.config log: using host configuration file:  log: using machine configuration file c:\windows\microsoft.net\framework64\v4.0.30319\config\machine.config. log: post-policy reference: recentitemsmanager.xmlserializers, version=1.0.0.0, culture=neutral, publickeytoken=b9588042c0f5ae4b, processorarchitecture=msil log: gac lookup unsuccessful. log: attempting download of new url file:///d:/projects/<snip>/bin/debug/recentitemsmanager.xmlserializers.dll. log: attempting download of new url file:///d:/projects/<snip>/bin/debug/recentitemsmanager.xmlserializers/recentitemsmanager.xmlserializers.dll. log: attempting download of new url file:///d:/projects/<snip>/bin/debug/recentitemsmanager.xmlserializers.exe. log: attempting download of new url file:///d:/projects/<snip>/bin/debug/recentitemsmanager.xmlserializers/recentitemsmanager.xmlserializers.exe. log: probing urls attempted , failed. 

in case tries load recentitemsmanager.xmlserializers, might @ 1 point have existed within 1 of projects has been deleted quite few months ago. tried using windows grep instances of these strings on of disk, can't find either. have ideas on how can fix this?

following @ama1111's link did research , discovered .net xmlserializers generated during runtime. managed build missing dlls using sgen , no longer complains missing dlls since built during compilation.

you can automatically build dlls in visual studio in project properties under build tab. if turn generate serialization assembly on should build them. however, webservice serialization. when use own xmlserialization classes not generate dll unless make sure sgen doesn't run /p(roxytypes) parameter. cannot specify in visual studio build tab, can edit csproj file this:

<generateserializationassemblies>on</generateserializationassemblies> <sgenuseproxytypes>false</sgenuseproxytypes> 

the 1 thing still confuses me can't first person ever wants add strong name project contains xmlserializer. if default behaviour generate dlls during runtime can't see how work out of box anyone.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -