异常是发生只能在我的机器:未找到方法:WaitHandle.WaitOne(Int32)已未找到、我的机器、异常、发生

2023-09-04 00:56:46 作者:时间的过错

异常只是我的机器上存在的内部引用.dll文件:未找到方法:WaitHandle.WaitOne(Int32)在

Exception is occuring only on my machine inside a referenced .dll: Method not found: WaitHandle.WaitOne(Int32)

这似乎是一个.NET运行库版本的问题,但我已经安装了.NET 3.5和重新启动,我仍然看到了同样的问题。 GACUTIL显示mscorlib程序版本2.0.0.0。

This appears to be a .NET runtime version problem but I've installed .NET 3.5 and restarted and am still seeing the same issue. Gacutil shows mscorlib Version 2.0.0.0.

我们已经修改了code调用这两个参数的WaitOne()API,事情正在处理所有的机器。然而,这将有助于了解为什么在.NET 3.5安装一些设备不包含此功能的单个参数版本。

We have modified the code to call the two parameter WaitOne() API and things are working on all machines. However, it would be helpful to know why some machines with .NET 3.5 installs do not contain the single parameter version of this function.

推荐答案

从 MSDN 它看起来像 WaitHandle.WaitOne(Int32)在添加在SP1中。无论是检查该源,安装程序,或者使用2参数版本。

From MSDN it looks like WaitHandle.WaitOne(Int32) was added in SP1. Either check for this in the source, the installer, or use the 2 parameter version.