Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 20, 2012 06:59 AM by geossl
Member
24 Points
85 Posts
Aug 20, 2012 06:37 AM|LINK
Dear All,
An ASP.NET 3.5 application need to access with read/write priviledge to a shared folder. This folder need login with UserID and password.
How to configure the Windows Server 2008 so that the ASP.NET worker process can gain access to this folder?
worker process privileges
Participant
1854 Points
318 Posts
Aug 20, 2012 06:47 AM|LINK
You need to use impersonation to achive this
Create user with read/write access on shared folder. Then impesonate your application to run under identity of that user.
http://www.codeproject.com/Articles/107940/Back-to-Basic-ASP-NET-Runtime-Impersonation
http://www.c-sharpcorner.com/UploadFile/manishkdwivedi/impersonation10092007065217AM/impersonation.aspx
Aug 20, 2012 06:59 AM|LINK
I've tried but it said there is not such user account in the server.
I would like to run the asp.net process using the original account but when accessing the folder, it will use the other userid/password to gain access...
geossl
Member
24 Points
85 Posts
ASP.NET application need access to password protected file folder, how to configure....
Aug 20, 2012 06:37 AM|LINK
Dear All,
An ASP.NET 3.5 application need to access with read/write priviledge to a shared folder. This folder need login with UserID and password.
How to configure the Windows Server 2008 so that the ASP.NET worker process can gain access to this folder?
worker process privileges
ganesh.rane
Participant
1854 Points
318 Posts
Re: ASP.NET application need access to password protected file folder, how to configure....
Aug 20, 2012 06:47 AM|LINK
You need to use impersonation to achive this
Create user with read/write access on shared folder. Then impesonate your application to run under identity of that user.
http://www.codeproject.com/Articles/107940/Back-to-Basic-ASP-NET-Runtime-Impersonation
http://www.c-sharpcorner.com/UploadFile/manishkdwivedi/impersonation10092007065217AM/impersonation.aspx
Ganesh Rane
Don't forget to mark useful responses as Answer if they helped you towards a solution.
geossl
Member
24 Points
85 Posts
Re: ASP.NET application need access to password protected file folder, how to configure....
Aug 20, 2012 06:59 AM|LINK
I've tried but it said there is not such user account in the server.
I would like to run the asp.net process using the original account but when accessing the folder, it will use the other userid/password to gain access...