且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

读取远程服务器上的文件

更新时间:2023-08-21 20:15:58

您必须使用模拟功能,即与具有访问共享文件夹权限的用户而不是asp.net用户一起执行代码:

You have to use impersonation, ie execute your code with a user who has acces to the shared folder instead of asp.net user :

http://msdn.microsoft.com /en-us/library/aa292118%28VS.71%29.aspx

您有两种方法: -带代码 -带有配置

You have two way : -with code -with configuration