"Refusal Access" error that resolves user changes in the thread created by ASP.NET

xiaoxiao2021-03-06  14

"Refusal Access" error that resolves user changes in the thread created by ASP.NET

Users in ASP.NET created by to NT Authority / Network Service, causing "System.unauthorizedAccessException", "Reject Access"

Dim Thr as threading.thread Diml as system.security.principal.windowsidentity

Function print () thr = new threading.Thread (addressofprintautocad) thr.start () l = system.security.principal.windowsidentity.getCurrent End Function

Private sub printautocad () system.security.principal.windowsidentity.impersonate (L.Token) ... End Function

转载请注明原文地址:https://www.9cbs.com/read-48077.html

New Post(0)