Re: Impersonate user from ASP.NET - access to network file share
From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 12/09/04
- Next message: Keith Spitz: "RE: Understanding ASP Namespace and RunAt"
- Previous message: Dave: "Re: Micro-Soft site:wikipedia.org"
- In reply to: Michelle: "Impersonate user from ASP.NET - access to network file share"
- Next in thread: Michelle_at_bwalk.com: "Re: Impersonate user from ASP.NET - access to network file share"
- Reply: Michelle_at_bwalk.com: "Re: Impersonate user from ASP.NET - access to network file share"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 09 Dec 2004 09:58:15 -0600
On 8 Dec 2004 11:31:21 -0800, Michelle@bwalk.com (Michelle) wrote:
¤ Hello!
¤
¤ I have an ASP.NET application (1.1 framework) that needs to be able to
¤ read/write files on a network share. The access to this file share
¤ will be fairly restricted, so I need to impersonate a specific user
¤ account on our domain in order to gain access. The impersonation is
¤ only needed for the sections that reads/writes files. I have tried
¤ using the code from http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q306158#4
¤ and many other similar sources with no success. I do not get any
¤ errors, but I am not logged in using the username and passoword I
¤ provide so I cannot access the network (it remains the anonymous
¤ user). I have tried putting the impersonation code into a Class
¤ Library and calling that from the web application with the same
¤ results.
¤
If you're accessing a resource that is not located on the web server then you will probably need to
implement delegation:
How to configure an ASP.NET application for a delegation scenario
http://support.microsoft.com/default.aspx?scid=kb;en-us;810572
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
- Next message: Keith Spitz: "RE: Understanding ASP Namespace and RunAt"
- Previous message: Dave: "Re: Micro-Soft site:wikipedia.org"
- In reply to: Michelle: "Impersonate user from ASP.NET - access to network file share"
- Next in thread: Michelle_at_bwalk.com: "Re: Impersonate user from ASP.NET - access to network file share"
- Reply: Michelle_at_bwalk.com: "Re: Impersonate user from ASP.NET - access to network file share"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|