Unable to load DLL !!!!!! 百万火急!!!!
在asp.net中调用了别人开发的一个C++动态连接库,开发时在自己机器上运行没有任何问题,可以上了服务器却有了下面的问题。
服务器配置:
.net framework 1.1
windows xp professional sp2
NTFS 磁盘格式
我已经采取的手段有:
设置NTFS的访问权限为user的完全控制
尝试注册OurDll.dll(我要引用的dll),但由于不是Com格式注册失败
制作成web可发行组建包,但是无法在服务器安装(安装时会自动取消)
添加path路径
将OurDll.dll拷贝到system32
大家谁遇到过这类问题,或者有什么好的建议请尽快和我联系,必有重谢!
有回复发至邮箱 dearymz@163.com
发信时请注明您的联系地址和真实姓名,谢谢。
================================================
Server Error in '/' Application.
--------------------------------------------------------------------------------
Unable to load DLL (OurDll.dll).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.DllNotFoundException: Unable to load DLL (OurDll.dll).
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[DllNotFoundException: Unable to load DLL (OurDll.dll).]
QuOnline.Kernel.CS_CreateMainProc() +0
ymz.PCS.Submit(String path_id, Double judgeValue) +112
QuOnline.homework._default.Submit_ok_ServerClick(Object sender, EventArgs e) +2498
System.Web.UI.HtmlControls.HtmlInputButton.OnServerClick(EventArgs e) +108
System.Web.UI.HtmlControls.HtmlInputButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573