ASP.Net 应用程序使用 fOpen 调用 DLL
我有 ASP.Net Web 应用程序,我的 C# 代码调用自定义 COM DLL。
该 DLL 是不久前编写的并使用 fOpen。 fOpen 调用返回一个 NULL 指针。 我怀疑这是权限问题,但我没有运气解决这个问题。
谁能给我一些该怎么做的想法? 可以使用fOpen吗? 我需要设置特殊权限吗?
任何帮助将不胜感激。
谢谢, 托尼
I have ASP.Net web app and my c# code calls into a custom COM DLL.
The DLL was written awhile back and uses fOpen. he fOpen calls return a NULL pointer. I am suspecting it is permissions, but I am having no luck in recolving the issue.
Can anyone give me any ideas of what to do? Can fOpen be used? Are there special permissions I need to set?
Any help would be greatly appreciated.
Thanks,
Tony
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题很可能出在它实际尝试打开的文件上。 文件 Asp.Net 辅助进程可能无权访问文件系统上的该文件。 您需要添加对工作进程的访问权限,这应该可以解决问题。
本页详细介绍如何设置 Asp.Net 1.1 的权限。 对于更高版本的 Asp.Net
http://www .asp.net/learn/whitepapers/aspnet-and-iis6/
The issue is most likely with the file it's actually trying to open. The file Asp.Net worker process likely doesn't have permission to access that file on the file system. You'll need to add access to the worker process and that should fix the issue.
This page details how to set permissions for Asp.Net 1.1. It should be fairly similar for later versions of Asp.Net
http://www.asp.net/learn/whitepapers/aspnet-and-iis6/
需要检查的一些事项:
trust
级别Some things to check:
trust
level of the ASP.Net app