ASP.NET 应用程序对 UNC 共享数据库文件的访问用作 IIS 虚拟目录,但不能用作 IIS 网站

发布于 2024-07-17 19:01:49 字数 407 浏览 16 评论 0原文

这简直要了我的命。 我有一个使用集成安全性的 ASP.net(2.0 Framework)应用程序。 IIS 已正确设置,并且可以作为默认网站之外的虚拟目录正常工作。 我的 OLEDB 连接 (Jet 4.0) 工作正常,并通过网络共享 (\GIS1\GIS Server - PublicWorks_StreetSigns) 连接到数据库文件。

但是,当我创建 IIS“网站”并将其指向完全相同的主目录时,我收到错误...

从 DBF 获取数据时出错。 “\GIS1\GIS Server - PublicWorks_StreetSigns”不是有效路径。

我是否必须在网站中与默认网站之外的虚拟网站中执行不同的操作才能使其正常工作? 我已经根据网站设置仔细检查了虚拟设置,一切都是一样的。

提前致谢。

This one is killing me. I have an ASP.net (2.0 Framework) app that uses integrated security. IIS is setup appropriately and works fine as a virtual directory off the default website. My OLEDB connection (Jet 4.0) works fine and connects to a database file via network share (\GIS1\GIS Server - PublicWorks_StreetSigns).

BUT, when I create an IIS "website" and point it to the exact same home directory I get an error...

Error getting data from DBF. '\GIS1\GIS Server - PublicWorks_StreetSigns' is not a valid path.

Do I have to do something different in a website versus a virtual off the default website to make this work? I've triple checked the virtual settings against the website settings and everything is the same.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

も让我眼熟你 2024-07-24 19:01:49

我会检查为每个网站提供服务的应用程序池的身份。 我的猜测是应用程序池的默认身份没有该路径的权限。

I would check the identity of the application pool servicing each website. My guess is that the default identity of the app pool doesn't have permissions to that path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文