ASP.Net 应用程序使用 fOpen 调用 DLL

发布于 2024-07-15 03:33:42 字数 227 浏览 5 评论 0原文

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

倾其所爱 2024-07-22 03:33:42

问题很可能出在它实际尝试打开的文件上。 文件 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/

剩一世无双 2024-07-22 03:33:42

需要检查的一些事项:

  • ASP.Net 应用程序的 trust 级别
  • 您是否将正确的路径传递给 dll(映射到本地文件系统与 Web 文件系统)?
  • 用于运行该网站的帐户是否有足够的权限来访问文件?

Some things to check:

  • The trust level of the ASP.Net app
  • Are you passing the correct path to the dll (mapping to the local file system vs web file system)?
  • Does the account used to run the site have sufficient permissions to access the file?
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文