Using file on network via IIS

2019-09-03 13:11发布

问题:

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,

回答1:

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