Windows 怎么找不到这个程序集?
我在 Windows 日志中不断收到此错误:
SharePointSocialNetworking.Facebook
b0ceb144-b183-4b66-aa10-39fd9ee42bd4
Could not load file or assembly 'Microsoft.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=736440c9b414ea16' or one of its dependencies. The system cannot find the file specified.
但它所讨论的程序集已显示在我的 GAC 中:
我是吗这里缺少一些东西吗? GAC 中的所有内容都与错误消息匹配。 windows怎么找不到这个呢?
I keep getting this error in my windows logs:
SharePointSocialNetworking.Facebook
b0ceb144-b183-4b66-aa10-39fd9ee42bd4
Could not load file or assembly 'Microsoft.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=736440c9b414ea16' or one of its dependencies. The system cannot find the file specified.
But the assembly it's talking about already shows in my GAC:
Am I missing something here? Everything in the GAC matches the error message. How could windows not find this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将 SafeControl 条目添加到您的 web.config:
Add a SafeControl entry to your web.config:
它不仅需要找到 Microsoft.Contracts 程序集,还需要找到它的所有依赖项。您需要查看该程序集具有哪些依赖项,并确保它们也都在 GAC 中。
It doesn't just have to find the Microsoft.Contracts assembly but ALL of its dependencies. You need to see what dependencies that assembly has and make sure they all are also in the GAC.
你可以在这里找到图书馆
C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll
You can find the library here
C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\mscorlib.dll