IIS7为另一台服务器上的文件创建虚拟目录
我正在将一些 ASP.Net 应用程序从 IIS6 迁移到 IIS7,到目前为止一切进展顺利。 我正在尝试在一台服务器上创建多个虚拟目录,这些目录将指向另一台服务器上的文件。 在 IIS6 中,我所要做的就是使用有权访问文件的用户进行匿名身份验证。 在 IIS7 中,我无法让它工作。 我使用用户名和密码设置虚拟目录,但收到 500.19 错误“由于权限不足,无法读取配置文件”。 我无法想象我真的必须将 web.config 放在仅包含图像而没有应用程序文件的目录中。 如果我单击 IIS 管理器中的目录,我会在单击的任何内容(例如“身份验证”部分)上收到有关 web.config 文件的错误。 另外,从虚拟目录写入文件似乎工作得很好,所以我不认为我有访问问题。 我已将目录访问权限授予 IIS_IUSR 组。
I am migrating some ASP.Net applications from IIS6 to IIS7 and all has gone well until now. I am trying to create several virtual directories on 1 server that will point to files on another server. In IIS6, all I had to do was make anonymous authentication use a user that had access to the files. In IIS7, I can't get it to work. I setup the virtual directory with the username and password but I get a 500.19 error "Cannot read configuration file due to insufficient permissions". I can't imagine that I really have to put a web.config in a directory that just contains images and no application files. If I click on the directory in IIS Manager, I get that error about the web.config file on anything that I click on such as the Authentication section. Also, writing to files from the virtual directory seems to work just fine so I don't think there is anyway that I have an access problem. I have given the directory access to the IIS_IUSR group.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用指向 UNC 共享的虚拟目录时,请转到虚拟目录的高级设置,然后选择具有访问该文件夹的适当权限的特定用户帐户。
它适用于我的 asp.net 应用程序中的虚拟目录,该目录指向远程服务器上的 UNC 共享。
When using a virtual directory that's pointed to a UNC share, go to advanced settings for the virtual directory, then choose a specific user account that has the appropriate rights to access the folder.
It works for my virtual directory in my asp.net app that is pointed to a UNC share on a remote server.