I'm deploying a windows service that watches for files. I need to impersonate an account that has access to a network share and this is working on my local machine and a development server but not the prod server. I can map drives on both servers using the account in question. Myself, the impersonation account, Admins, and SERVICE are all part of the "Impersonate a client.." security setting. It looks like the call to advapi32.api is failing with a False return on the prod server (I can't attach to a process on the servers to see why but I've added logging that narrows it to that call).
Differences between dev and prod server:
Prod:Windows Server 2003 R2 Standard EditionSP2
dev: Windows Server 2003 Standard Edition SP1
Different domains but both my id and the impersonation id can be located and given privileges on both servers using "domain\id" where domain is the same for both.
Any ideas why it's failing?