访问目录时权限被拒绝,可以:
a.在web.config中加入<identity impersonate="true" />,如:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConnectionString" value=""/>
</appSettings>
<system.web>
<identity impersonate="true" />
...................................................
b.将那个目录设为允许asp.net用户访问
a.在web.config中加入<identity impersonate="true" />,如:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ConnectionString" value=""/>
</appSettings>
<system.web>
<identity impersonate="true" />
...................................................
b.将那个目录设为允许asp.net用户访问
要加上aspnet用户
文件访问权限问题