ASP.NET 部署到IIS,访问其它服务器的共享文件 密码设定
asp.net
- 修改上面的 IIS
- 需要在 配置文件 添加如下内容
》》》web.config
<system.web>
<!--<identity impersonate="true"/>-->
<identity impersonate="true" userName="您的账号" password="您的密码" />
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
asp.net core
不需要额外操作 ,修改IIS配置即可 如上图