在运行时绑定 Microsoft.Web.DynamicData 程序集失败
我有一个使用其他人编写的 DynamicData 的项目。 每次我尝试调试它时,我都会收到我在底部附加的消息
我已经尝试将 DynamicData dll 部署到 GAC,并将其放入 bin 文件夹,检查程序集全名,再次安装 VS SP1,然后.NET Framework SP1,并在 Fuslogvw 中检查日志。
此时我已经没有想法了。 有人可以帮助我,或者至少建议一个寻找解决方案的新方向吗? 提前谢谢。
我收到的错误消息:
=== Pre-bind state information ===
LOG: User = DOMAIN\user
LOG: DisplayName = Microsoft.Web.DynamicData
(Partial)
LOG: Appbase = file:///C:/AppBase/
LOG: Initial PrivatePath = C:/AppBase/bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:/AppBase/bin/web.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
I've got a project using DynamicData that was wrote by somebody else. Every time i try debbuging it, I get the message I've attached at the bottom
I've already tried deploying the DynamicData dll to GAC, and throwing it into the bin folder, chceking the assemblies full names, installing again VS SP1, and .NET Framework SP1, and chceking the logs in Fuslogvw.
I've run out of ideas at this point. Could anybody help me, or at least suggest a new direction of searching for the solution ? Thx in advance.
The error message I get :
=== Pre-bind state information ===
LOG: User = DOMAIN\user
LOG: DisplayName = Microsoft.Web.DynamicData
(Partial)
LOG: Appbase = file:///C:/AppBase/
LOG: Initial PrivatePath = C:/AppBase/bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:/AppBase/bin/web.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您也许可以使用 AppDomain.AssemblyResolve活动以了解有关所请求的大会的更多信息。 您可以检查版本号和其他所有内容是否匹配。 如果您已经加载了依赖项,那么您只需从事件处理程序返回它即可。 我在 这个答案。
You might be able to use the AppDomain.AssemblyResolve event to learn more about the Assembly that's being requested. You can check that the version numbers and everything else match. If you have the dependency already loaded, then you can just return it from the event handler. I've included some sample code in this answer.