c# - Compilation Failed. Unable to load one or more of the requested types. retrieve the loaderexceptions -



have been facing loader exception quite while after trying many solutions i'm still unable fix. here problem, when build 1 of project in solution in visual studio 2010, below error

'compilation failed. unable load 1 or more of requested types. retrieve loaderexceptions property more information.'

few of tried:
1. checkedout new codebase repository make sure code changes or property changes has nothing cause exception. team mates have them executing without build errors.
2. checked required dll's in output directory
3. checked if there version mismatch between .net , dll's being compiled.
4. set copy local attribute true reference in project.
5. uninstalled , re-installed visual studio 2010
6. restarted pc
7. used 'assembly binding log viewer' see if failing load dll's , gave different logs each time compiled project. sample logs below:

assembly binder log entry  (7/19/2015 @ 9:10:41 pm)
  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  c:\windows\microsoft.net\framework\v4.0.30319\microsoft.workflow.compiler.exe
--- detailed error log follows.
  === pre-bind state information ===
log: displayname = xxx.common.qty, version=1.0.8.407, culture=neutral, publickeytoken=null, processorarchitecture=amd64
(fully-specified)
log: appbase = file:///c:/windows/microsoft.net/framework/v4.0.30319/
log: initial privatepath = null
log: dynamic base = null
log: cache base = null
log: appname = microsoft.workflow.compiler.exe
calling assembly : (unknown).
===
log: bind starts in default load context.
log: using application configuration file: c:\windows\microsoft.net\framework\v4.0.30319\microsoft.workflow.compiler.exe.config
log: using host configuration file:
log: using machine configuration file c:\windows\microsoft.net\framework64\v4.0.30319\config\machine.config.
log: policy not being applied reference @ time (private, custom, partial, or location-based assembly bind).
log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/xxx.common.qty.dll.
log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/xxx.common.qty /xxx.common.qty.dll.
log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/xxx.common.qty.exe.
log: attempting download of new url file:///c:/windows/microsoft.net/framework/v4.0.30319/xxx.common.qty /xxx.common.qty.exe.
log: probing urls attempted , failed.

but, i'm able see xxx.common.qty.dll in output directory , i'm not sure why message thrown.

note: issue started occurring after had pc crash , exception started happening in new pc. means, there chance new pc throw such errors due wrong configurations ?

i highly appreciate share experience solving problem. problem has been big time affecting me doing work.

thanks taking time read issue.

note: found weird. codebase lies in d drive inside folder called automation_framework, unfortunately same folder getting created in v drive. when delete, create, rename them in d drive, same thing happens in v drive. think there symbolic link created between them cause exceptions. now, i'm trying rid of mapping between these 2 drives unsure how can without loss of data in d drive. please, let me know of how can remove them.

also, when opened solution in v: drive, see of projects unavailable(which same project trying compile d drive) , throws below error seems major cause, there process being created in background seems have locked sandbox , i'm unable rid of this.

v:\sampleproj\wf\manualtasks\wf.manualtasks.csproj : error : starting scm daemon (c:\program files\ibm\rational team concert client microsoft visual studio ide\3rd party\scmtools\eclipse\scm.exe) on v:\ returned error: **sandbox(es) locked unknown process.
problem running 'daemon start':
failed lock sandboxes. not lock "status info: com.ibm.team.filesystem.client code=0 unable lock file v:.jazz5.jazzlock null".**


Comments