HELP WITH IMPERSONATING

U

u_heet

Hi, I am a newbie at asp.net so I appreciate all of your help.

I have a datagrid displaying unc_path's as a hyperlink to network shares.
The problem that I'm having is that I get "Access denied" but only on serverB.
ServerA is local, ServerB is remote. I tried impersonating an "admin"
account in a web.config file but it doesn't seem to work. The output of
System.Security.Principal.WindowsIdentity.GetCurrent().Name shows the correct
domain account I'm trying to impersonate. Weird thing is if I log into my
machine as the account I'm trying to impersonate I can access the shares in
both serverA and serverB with no problems.

My web.config looks like this:

<configuration>
<system.web>
<customErrors mode="Off"/>
<identity impersonate="true" userName="myDomain\Admin" password="Admin" />
</system.web>
</configuration>

Am I missing something?
 

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

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top