gpt4 book ai didi

WatiN 错误无法加载程序集

转载 作者:行者123 更新时间:2023-12-03 05:21:12 27 4
gpt4 key购买 nike

我收到以下 WatiN 错误:

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl y 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5 ad44e' or one of its dependencies. The located assembly's manifest definition do es not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db

我将 shDocvw.dll 从 System32 复制到 bin 目录,但它仍然给我带来同样的问题。

最佳答案

如果您已在 VS2010 中使用 NuGet 安装并引用了 WatiN,则您应该已经拥有正确的引用,因此不需要删除并重新添加它们。但您仍然需要在 Interop.SHDocVw 引用上将“嵌入互操作类型”设置更改为 False。

关于WatiN 错误无法加载程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1457635/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com