通过IIS在网络上使用文件 [英] Using file on network via IIS
问题描述
我有一个服务器(Server 2008)与IIS 7.5,一个ASP.NET应用程序。此应用程序使用newtork上的Excel文件位置。当我在服务器上启动应用程序 http:// localhost / MyApplication ...没有问题,我可以通过\\ \\ network \path或通过映射驱动器。
现在,从客户端,我尝试使用相同的应用程序 http:// myServer / MyApplication 在这种情况下,我收到一条消息...不是有效路径
此应用程序正在具有NetworkService身份的ApplicationPool上运行
想解决这个问题吗?
感谢,
使用NetworkService作为ApplicationPool标识是一个问题,您需要将其设置为使用具有访问权限
http://www.simongibson.com/intranet/virdir/
< a href =http://support.microsoft.com/kb/207671 =nofollow> http://support.microsoft.com/kb/207671
I have a server (Server 2008) with IIS 7.5, an ASP.NET application. This application use an Excel file place on the newtork. When I launch the application on the server http://localhost/MyApplication ... no problem I can use the file via \network\path or via a mapping drive.
From a client now, I try to use the same appliction http://myServer/MyApplication in this case, I get a message "... is not a valid path"
This application is running on an ApplicationPool with identity "NetworkService"
An idea to solve this problem ?
Thanks,
Using the NetworkService as ApplicationPool identity is the issue, you need to set it to run with an identity which has access to the shared drive.
Check the following articles:
http://www.simongibson.com/intranet/virdir/
http://support.microsoft.com/kb/207671
这篇关于通过IIS在网络上使用文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!