Reputation: 355
I'm trying to impersonate a domain user over vpn. I am able to run management studio from the command prompt using the RUNAS command. However, I can't do the same with my vb application (.net 4.5, winforms, using VS 2012 Express) in either debug mode or published app. Here is what I tried:
Does anyone have any explanation for these errors and/or how I might solve this. I'm assuming that if I can impersonate and run ssms, I should be able to do it within my vb app.
Thanks in advance!
Upvotes: 1
Views: 1100
Reputation: 36
This is a bit of a leap but - particular parts of Windows can only run once and are not allowed to have multiple instances from different users. I wonder if this is the issue here. I'm thinking particularly of explorer.exe. If this sounds like it might be what's tripping up the RUNAS method, try:
Now try your application. When you're done be sure to switch back by:
Upvotes: 2