exception - c# binding failure was detected 'Microsoft.Practices.EnterpriseLibrary.Validation' -
exception - c# binding failure was detected 'Microsoft.Practices.EnterpriseLibrary.Validation' -
the building of project working on friend's computer not on mine.
on homecoming line:
protected static database connection2 { { seek { homecoming databasefactory.createdatabase("hermesdb"); } grab (exception e) { //corpnet.elmah.error.add(e); homecoming null; } } } i getting next error:
the assembly display name 'microsoft.practices.enterpriselibrary.validation' failed load in 'load' binding context of appdomain id 1. cause of failure was: system.io.filenotfoundexception: not load file or assembly 'microsoft.practices.enterpriselibrary.validation' or 1 of dependencies. scheme cannot find file specified. file name: 'microsoft.practices.enterpriselibrary.validation'
=== pre-bind state info === log: user = mlabs\agordon log: displayname = microsoft.practices.enterpriselibrary.validation (partial) log: appbase = file:///c:/documents , settings/agordon/my documents/projects/bulkuploadtolomdatabase/bulkuploadtolomdatabase/bin/debug/ log: initial privatepath = null calling assembly : microsoft.practices.enterpriselibrary.common, version=5.0.414.0, culture=neutral, publickeytoken=null. === log: bind starts in default load context. log: using application configuration file: c:\documents , settings\agordon\my documents\projects\bulkuploadtolomdatabase\bulkuploadtolomdatabase\bin\debug\bulkuploadtolomdatabase.vshost.exe.config log: using machine configuration file c:\windows\microsoft.net\framework\v2.0.50727\config\machine.config. log: policy not beingness applied reference @ time (private, custom, partial, or location-based assembly bind). log: attempting download of new url file:///c:/documents , settings/agordon/my documents/projects/bulkuploadtolomdatabase/bulkuploadtolomdatabase/bin/debug/microsoft.practices.enterpriselibrary.validation.dll. log: attempting download of new url file:///c:/documents , settings/agordon/my documents/projects/bulkuploadtolomdatabase/bulkuploadtolomdatabase/bin/debug/microsoft.practices.enterpriselibrary.validation/microsoft.practices.enterpriselibrary.validation.dll. log: attempting download of new url file:///c:/documents , settings/agordon/my documents/projects/bulkuploadtolomdatabase/bulkuploadtolomdatabase/bin/debug/microsoft.practices.enterpriselibrary.validation.exe. log: attempting download of new url file:///c:/documents , settings/agordon/my documents/projects/bulkuploadtolomdatabase/bulkuploadtolomdatabase/bin/debug/microsoft.practices.enterpriselibrary.validation/microsoft.practices.enterpriselibrary.validation.exe.
here references have:
i did download latest enterprise library , install , replaced dlls in above image updated versions of them.
what doing wrong?
alright i've found solution. never take turning off exceptions answer. seems somehow wrong....
what seems happening in previous assemblies, or previous versions of current assembly, references used externally. though code may have long since abandoned references, names still, mysterious somewhere, beingness searched in assembly.
go assemblyinfo.cs files , find themeinfo:
[assembly: themeinfo( resourcedictionarylocation.externalassembly, //where theme specific resource dictionaries located //(used if resource not found in page, // or application resource dictionaries) resourcedictionarylocation.sourceassembly //where generic resource dictionary located //(used if resource not found in page, // app, or theme specific resource dictionaries))] change first location 'none':
[assembly: themeinfo( resourcedictionarylocation.none, //where theme specific resource dictionaries located //(used if resource not found in page, // or application resource dictionaries) resourcedictionarylocation.sourceassembly //where generic resource dictionary located //(used if resource not found in page, // app, or theme specific resource dictionaries))] and maintain exceptions turned on! posting reply various questions of similar nature.
c# exception error-handling
Comments
Post a Comment