Prev: Datagridview sort programattically in virtual mode
Next: Paste an attached file in Outlook from the Clipboard in Windows Fo
From: Willy Denoyette [MVP] on 11 Feb 2006 05:19 "Kirk" <kirk.martinez(a)gmail.com> wrote in message news:1139609627.256062.238460(a)o13g2000cwo.googlegroups.com... |I tried domain users as well as the local (server) administrator | account, which I thought for sure should work since that's what the | pool is running as, but still no luck. I can run "runas | /user:Administrator "c:\windows\system32\whoami.exe" no problem. (I | can see that it is in fact running if I runas a batch file that calls | whoami.exe over and over so the cmd box doesn't disappear right away.) | I can also run it as domain users (I tried using a domain account | instead of Administrator to manage the pool, but that didn't help). | | A quick recap of my config and stuff just to check sanity: | | * Windows Server 2003 with .NET 2.0 SDK installed | * IIS virtual directory for web_services set to integrated Windows | authentication | * web_services use app pool WebServices | * WebServices app pool sets Identity Configurable: local server | Administrator account | * (I also ran aspnet_regiis.exe -ga on Administrator just in case) | * Impersonate set to true in web.config; authentication Windows | * Browser connects to aspx page as a separate domain user with access | to aspx file | | My basic web service to invoke whoami.exe works fine with this config | unless you set UserName and Password on ProcessStartInfo. All | UserNames will fail, but most striking is the local server | Administrator also fails (even though that's what the pool uses). The | result is an Access is Denied exception from Process.Start. | | Thanks, | Kirk | Ok, may I suggest you to: 1. turn-on logon auditing using the "local security policy" editor (local polcies/audit policy account and event logon) 2. try several scenario's, and ... 3. watch the security log in eventviewer. Willy.
From: Kirk on 13 Feb 2006 18:53
All audits pass. With impersonation off, the process starts as the C#-specified user, but hangs. I can see it running as the C#-specified user in Task Manager. There is another poster in framework.aspnet, so hopefully he has some other ideas. Thanks, Willy, for your help. |