Hi Bala,
Can you post your code assigning the username and password? It's possible
you are making a minor syntax error or other mistake there. Also, you can
check in debug mode to make sure the username and password being passed are
the same as your hardcoded values.
--
Joshua Mitts
"Bala" <> wrote in message
news:A538D982-0140-435F-92A1-...
> Hi
>
> Using this code I am try to imperosnate the user.
>
> I did the sample page using this code, thats working fine. When i try
> place
> this code into my existing application its working fine when I HARD CODED
> THE
> USER NAME AND PASSWORD. if I pass the user name and password as variable
> string, the imepersonate got failed.
>
> Please help me.. its very urgent...
>
>
> http://support.microsoft.com/default...;EN-US;Q306158