繁体中文
设为首页
加入收藏
当前位置:JSP技术首页 >> Jsp/Servlet >> 解决ASP.NET创建的线程的用户改变引发的"拒绝访问"错误

解决ASP.NET创建的线程的用户改变引发的"拒绝访问"错误

2005-06-15 08:00:00  作者:  来源:互联网  浏览次数:0  文字大小:【】【】【
简介:  ASP.NET创建的线程的用户由 改为NT AUTHORITY\NETWORK SERVICE, 引起"System.UnauthorizedAccessException","拒绝访问" Dim thr As Threading.Thread Dim l As System.Security.Principal.WindowsIdentity F...
关键字:线程 错误 用户 NET ASP

  ASP.NET创建的线程的用户由 改为NT AUTHORITY\NETWORK SERVICE, 引起"System.UnauthorizedAccessException","拒绝访问"

Dim thr As Threading.Thread

Dim l As System.Security.Principal.WindowsIdentity

Function print()

thr = New Threading.Thread(AddressOf printAutoCAD)

thr.Start()

l = System.Security.Principal.WindowsIdentity.GetCurrent

End Function

Private Sub printAutoCAD()

System.Security.Principal.WindowsIdentity.Impersonate(l.Token)

...

End Function

责任编辑:admin
http://www.3pcode.com/jsp/2005/06/11160.htm" />
发表评论 加入收藏 告诉好友 打印本页 关闭窗口 返回顶部
相关文章