DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 02 Aug 2007 09:31:57 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    unknown


accessing folder on remote server from asp.net page (impersonation question)   
I have a .NET 2.0 web app that needs to access the file server.
Obviously, the local ASPNET account on the web server does not have
any permissions on the file server. Therefore, I turned on
impersonation in the web.config for the web app.

However, when running on the dev web server, setting Identity
impersonation="true" in the web.config file leaves me with an "access
to the path '\\server\share' is denied" exception. Setting up
impersonation programatically results in the same. But, if I run the
app off my local box, which is using the VS 2005 built in web server,
it works like a charm. It also works great if I hardcode a username
and password in the web.config file.

Impersonation appears to be working fine on the web dev box but not on
the file server. The security event log on the file server shows NT
AUTHORITY\ANONYMOUS LOGON as the user when running the app from the
dev box. When running it on my local box, my username shows up as
expected.

I have Integrated Windows authentication enabled in IIS and anonymous
access is not checked.
(http://forums.iis.net/t/1114220.aspx), (http://forums.asp.net/p/
716850/716850.aspx), and (http://msdn2.microsoft.com/en-us/library/
Aa291350(VS.71).aspx) all explain what's going on. The user is being
impersonated on the web server box as expected, but the user's
credentials aren't being passed on to the file server. Instead the web
app is accessing the file server as anonymous.

How can I get around this? Any help would be appreciated!
Date:Thu, 02 Aug 2007 09:31:57 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us