I have one ASP.NET page which allows users to upload their files which are stored in another system (file server) through simple network share. The code is as simple as
Here this page gets "access denied" to save the file. I know the application is running under ASPNET local user account. So i even can't give privileges to save file for this local account in another target system.
I solved this problem by using impersonation tags as below in the web.config :
<identity impersonate="true" userid=xxx password=yyyy />
But i have to specify user id and password explicitly in plain text here....
Is there anyway i avoid specifying user id and password like this?