修改你的web.config
<authentication mode="Windows"/>
<identity impersonate="true" userName="你的机器名\Administrator" password="1234"></identity>
<authentication mode="Windows"/>
<identity impersonate="true" userName="你的机器名\Administrator" password="1234"></identity>
你运行一下
System.IO.File.Exist("H:\\abc.txt");
看看能不能访问
建议用\\Server\Path的网络路径方式去访问你的共享文件,记得改共享需要给ASP.NET执行进程用户相应的权限。