开发者

LoadLibrary of unmanaged dll returns IntPtr.Zero in ASP.NET application

I am trying to call LoadLibrary and load Delphi dll in ASP.NET application. On my production machine everything works fine (using VS integrated server), but when I place it on destination server, LoadLibrary returns IntPtr.Zero. File.Exists(libraryName) returns true. What can be 开发者_如何学Cthe problem?


most likely that delphi dll has an external dependency. if it were me, i'd write a small delphi app to load the library implicitly. when you run that helper app on the destination machine, you should get an error message on the screen that gives you the name of the missing external library.


Did you copy the delphi dll and its supporting DLL's onto the target machine, somewhere in the directory where the ASP.NET application is running off against?

Hope this helps, Best regards, Tom.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜