Windows 2003 Server 配置共享目录可以运行程序

1.主服务器A(192.168.0.2),共享服务器B(192.168.0.3),两台服务器同是建立帐号abc

 

2.在服务器A上新建应用程序test,目录输入//192.168.0.3/mytest,.访问帐号设置为abc

 

3.在A机器的web.config的<system.page>节点加入<identity impersonate="true" userName="abc" password="abc" />;

 

4.运行c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/caspol.exe -q -m -ag 1 -url "file:///////192.168.0.3/mytest/* "FullTrust -exclusive on 

设置安全策略

 

5.重启iis

 

6.应该可以了

 

在mytest下是有bin目录和web.config的;

 

两台机器:a,b下abc帐号可以先设置为Administrators组的成员,成功了再缩小权限。

参考地址:http://m.cnblogs.com/27291/1584224.html?full=1

 

你可能感兴趣的:(c,windows,server,File,服务器,IIS)