DllNotFoundException,但DLL有 [英] DllNotFoundException, but DLL is there

查看:161
本文介绍了DllNotFoundException,但DLL有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用了硬件随机数发生器,它提供了一个名为PsyREG.dll DLL文件与它交互,以及使用从DLL方法的一些C#源的SDK。

So I'm using an SDK for a hardware random number generator which provides a dll called PsyREG.dll for interacting with it, as well as some c# source for using the methods from the dll.

它已经在过去的工作,但不知何故,已停止工作。我的手都有点忙,因为我实际上并不在目前访问该设备有问题,所以我不能尝试了很多东西...

It has worked in the past, but somehow it has stopped working. My hands are a bit tied as I don't actually have access to the device in question at the moment, so I can't try a lot of things...

然而,这里的奇怪的事情。该DLL是存在的,在同一个地方它的始终。其实File.Exists(PsyREG.dll)AHD返回true,和我双重检查,这就是完全相同的方式提供C#源进口的,例如函数[DllImport(PsyREG.dll)。

However, here's the weird thing. The dll is there, the same place it's always been. Ahd in fact File.Exists("PsyREG.dll") returns true, and I've double checked and that's the exact same way the provided c# source imports it, e.g. [DllImport("PsyREG.dll")].

任何想法?

推荐答案

这可能是这个DLL有一定的依赖性,他们的arent registred或在您的应用程序的同一文件夹中的arent。

It is probably this dll has some dependencies that they arent registred or arent in the same folder of your application.

这篇关于DllNotFoundException,但DLL有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆