Unable to load DLL !!!!!! 百万火急!!!!

277894613 2006-05-21 06:40:03
在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
...全文
698 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
277894613 2006-05-23
  • 打赏
  • 举报
回复
问题没有解决,不过今天已经过了最后期限,问题交给其他组了
被老板批了,还好没有被炒
哎!~~~~~~~~~
最怕的就是这种含糊的错误,真的给人一种无奈的感觉。

感谢上面两位高人的指点!
蒋晟 版主 2006-05-22
  • 打赏
  • 举报
回复
Is the unmanaged C++ dll a debug build that needed some debug dependency files loaded on the test machines? Please get a release build of the dll and test again.
Please download filemon and regmon from www.sysinternals.com to see which file is "access denied" or "not found" when called from asp.net.
277894613 2006-05-21
  • 打赏
  • 举报
回复
要用到的Dll都放在bin目录下
这个dll是标准C写的
应该不是因为它引用到其他dll的问题,因为上面的错误标明是找不到OurDll.dll
真相重于对错 2006-05-21
  • 打赏
  • 举报
回复
放在同一目录下?
还有这个dll是否还用到别的dll?

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧