Unable to load referenced library System.DirectoryServices.dll ... System Error &H8013110e&
All of the sudden, I'm no longer able to build a Solution without get开发者_如何学运维ting an error in VS 2010. A minute ago I was able to build, and now I can't.
The error is:
Unable to load referenced library 'C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.DirectoryServices.dll': System Error &H8013110e&
I've checked and the .dll is there. I've re-booted and grabbed the latest version from Team Foundation Server.
Any ideas?
This post on MSDN indicates that this error message represents a BadImageFormatException. That exception, combined with the steps you have already taken, makes me think that maybe your install of .NET has become corrupted. I had a similar issue a while back (while using a VM) and I had to repair the .NET Framework on my VM using the .NET Framework Cleanup Tool to finally resolve the issue.
If you check the comment on the accepted answer to this question, I posted the steps I took when using the .NET cleanup tool.
I re-installed VS 2010, and the error no longer appears.
精彩评论