I am making a web service which accesses a shared directory on the netwoek to
upload a file there. Here comes the problem, When I use impersonation and
give the userName & password of an authenticated user, then it works fine but
when I impersonate, using ASPNET account of the machine where web service is
being hosted then the whole uploading process fails. As, it also exposes the
password in clear text format, it is also not acceptable. Also, if I make a
group on the machine where directory is shared, then again I cannot add the
ASPNET user account of the machine where web service being hosted, in that
usergroup.
So is there any solution for the above problem? All the suggestions and
queries are welcome.

Signature
Thanks & Regards,
Ramesh
Manohar Kamath - 04 Mar 2005 13:21 GMT
You can still impersonate, but use one account -- domain or local, which has
access to the network share. You can encrypt the username and password and
store it in registry using aspnet_setreg utility. Here's the info:
http://support.microsoft.com/default.aspx?scid=kb;en-us;329290
Hope that helps.

Signature
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
> I am making a web service which accesses a shared directory on the netwoek to
> upload a file there. Here comes the problem, When I use impersonation and
[quoted text clipped - 8 lines]
> So is there any solution for the above problem? All the suggestions and
> queries are welcome.