Uploading web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ramesh Chawla

    #1

    Uploading web service

    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.
    --
    Thanks & Regards,
    Ramesh
  • Manohar Kamath

    #2
    Re: Uploading web service

    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:



    Hope that helps.

    --
    Manohar Kamath
    Editor, .netWire



    "Ramesh Chawla" <rameh28th@redi ffmail.com> wrote in message
    news:71D58A99-22E0-4521-A433-E740D0AB7B58@mi crosoft.com...[color=blue]
    > I am making a web service which accesses a shared directory on the netwoek[/color]
    to[color=blue]
    > 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[/color]
    but[color=blue]
    > when I impersonate, using ASPNET account of the machine where web service[/color]
    is[color=blue]
    > being hosted then the whole uploading process fails. As, it also exposes[/color]
    the[color=blue]
    > password in clear text format, it is also not acceptable. Also, if I make[/color]
    a[color=blue]
    > group on the machine where directory is shared, then again I cannot add[/color]
    the[color=blue]
    > 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.
    > --
    > Thanks & Regards,
    > Ramesh[/color]


    Comment

    Working...