在web.config中的web节下,添加 <identity impersonate="true" userName="" password="" /> 转载于:https://www.cnblogs.com/shunliy/archive/2008/07/21/1247390.html