Microsoft OLE DB Provider for Visual FoxPro: 无效的路径或文件名

Microsoft OLE DB Provider for Visual FoxPro: Invalid path or file name

当 运行 我的经典 ASP 站点在本地使用 Visual Studio 和 IIS Express 时,我可以连接到我的 VFP 数据库,但是当我部署到 IIS 上的服务器时,它得到:

Microsoft OLE DB Provider for Visual FoxPro: Invalid path or file name

来自 a comment on this post,我发现问题可能与 权限 有关,但我在域帐户下获得了应用程序池 运行访问数据库所在的 UNC。

我将匿名访问的身份验证从 IUSR 更改为 Application pool identity,它开始工作了。

IIS Manager -> Website -> Authentication -> Anonymous Authentication -> Edit

更改后,数据库访问现在必须使用服务帐户。我想 ASP.NET 和经典 ASP 之间有区别吗?


参考我是如何得到这个答案的

我找到了 this post which talked about anonymous access which got me thinking more about "classic asp run under service account". That Google search lead to me to this SO post:

Classic ASP runs impersonating the user who is authenticated to the server in the HTTP session.