Re: Help with Impersonating
From: Daniel Fisher\(lennybacon\) (info_at_(removethis)lennybacon.com)
Date: 10/03/04
- Previous message: Daniel Fisher\(lennybacon\): "Re: Development on web server using VStudio .Net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 3 Oct 2004 19:18:16 +0200
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/ "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>
- Previous message: Daniel Fisher\(lennybacon\): "Re: Development on web server using VStudio .Net"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|