Form验证也要用这个?<identity impersonate="true"/>
听说只有WINDOWS验证才可以用这个,不知FORM验证也要用这个,不用有时也可以,有时就会出错,不是什么原因?
<identity impersonate="true"/>

解决方案 »

  1.   

    如果在windows2000环境下,不用这个是可以的,但在windows2003下,如果不添加此选项,那么,如果你有使用一些DLL文件,则经常会出现类似如下的错误:
    程序集加载跟踪: 下列信息有助于确定程序集“yoxublog”无法加载的原因。
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Post-policy reference: yoxublog
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/yoxublog_manage/8c9ae807/1ba33514/yoxublog.DLL.
    LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/yoxublog_manage/8c9ae807/1ba33514/yoxublog/yoxublog.DLL.你把所需要的文件拷到上述说明的目录中,即正常,但运行几次之后,拷过去的文件会被删除,然后又会出现类似错误.
    在web.config里面添加此句,可起到防止此错误的作用.