C# - 获取ASPNET WindowsIdentity

时间:2009-05-29 17:28:47

标签: c# impersonation file-permissions windows-identity

我想让ASPNET用户完全控制几个文件,但看起来我需要先获取帐户的令牌。有谁知道如何在桌面应用程序中模拟ASPNET帐户?

谢谢!

1 个答案:

答案 0 :(得分:2)

以下是使用WindowsIdentity.Impersonateanother example模仿其他用途的示例。您必须有一个known process identity的ASP.NET才能运行。