Help with Impersonation and GetDirectories

S

SimeonArgus

I'm issuing Directory.GetDirectories(MyPath) and it returns an access
violation error. It is a windows application (not a web application)
and running locally at my desktop, not across a network.

When I skip over the impersonation step, it runs under my account and
works fine, because I have rights there. However, the account I am
impersonating is an administrative account, and also has permissions
to this directory. (All directories, in fact.)

The only thing I can think of that is unusual about this is that
MyPath points to a network drive: G:\projects\...yaddayadayadda...

Is there a known issue with requesting a list of directories while
under an impersonated session? If so, is there a workaround?

Any help would be incredibly appreciated. Thank you.

--Jerry
 
S

SimeonArgus

Additional information:

When I log onto the PC as the administrative user directly, I can view
the directory and files, so I know it is not a direct permissions
problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top