If you are not logged in (e.g. Administrator w. WindowsAuth) the
ProcessIdentity that accesses the share is an account with no permissions on
the remote server.
--
Daniel Fisher(lennybacon)
MCP C# ASP.NET
Blog:
http://www.lennybacon.com/ [quoted text, click to view] "u_heet" <u_heet@discussions.microsoft.com> wrote in message
news:508F7EBA-DA38-4FD8-8F27-CBBEA76FD819@microsoft.com...
> Hi, I am a newbie at .net so I appreciate all of your help.
>
> I have a datagrid displaying unc_path's as a hyperlink to shares on
> servers.
> The problem that I'm having is that I get "Access denied" but only on
> serverA.
> Shares on ServerB are accessible. ServerA is located remotely, ServerB is
> local. I get this "Access Denied" message when logged as a domain user.
> I
> tried impersonating an "admin" account in a web.config file but it doesn't
> seem to work. But if I log into my machine as an "Administrator" 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>