Charles
Charles

Reputation: 6317

C# - Get ASPNET WindowsIdentity

I'd like to give the ASPNET user Full Control over several files, but it looks like I'll need to get the account's token first. Does anyone know how to impersonate the ASPNET account within a desktop app?

Thanks!

Upvotes: 0

Views: 2147

Answers (1)

JP Alioto
JP Alioto

Reputation: 45127

Here is an example of impersonating another use with WindowsIdentity.Impersonate and another example. You will have to have a known process identity for ASP.NET to run under.

Upvotes: 2

Related Questions