标签: c# impersonation file-permissions windows-identity
我想让ASPNET用户完全控制几个文件,但看起来我需要先获取帐户的令牌。有谁知道如何在桌面应用程序中模拟ASPNET帐户?
谢谢!
答案 0 :(得分:2)
以下是使用WindowsIdentity.Impersonate和another example模仿其他用途的示例。您必须有一个known process identity的ASP.NET才能运行。