D
Dinesh Upare
We are running in weird problem.
We have web application1 and web application2 on same
server and web application3 on other server.
1 and 2 has form based authentication and has been
configured with site server.
We are using WebRequest class from application1 to access
pages of other applications(2 and 3).
I could access Application3, when i set the
credentials,username and password.
But I can not access pages of the application 2 with this
usernaem and password as it has forms based authentication.
We are quite stuck, not able to understand what is
happening .I even tried with setting
DefaultCrdentialsCache but it also did not work.
But the strange thing, When we type a url of application2
in Internet Exporer, it works without a problem.This is
because the application1 is already authenticated by form
based authentication so it persists the credentials and
passes them to application2 which is also form based
authentication.
Can any body help me, how to authenticate a form based
application page using WebRequest class, and how to pass
the credentials of the existing application to other
application.
Thanks
Dinesh
We have web application1 and web application2 on same
server and web application3 on other server.
1 and 2 has form based authentication and has been
configured with site server.
We are using WebRequest class from application1 to access
pages of other applications(2 and 3).
I could access Application3, when i set the
credentials,username and password.
But I can not access pages of the application 2 with this
usernaem and password as it has forms based authentication.
We are quite stuck, not able to understand what is
happening .I even tried with setting
DefaultCrdentialsCache but it also did not work.
But the strange thing, When we type a url of application2
in Internet Exporer, it works without a problem.This is
because the application1 is already authenticated by form
based authentication so it persists the credentials and
passes them to application2 which is also form based
authentication.
Can any body help me, how to authenticate a form based
application page using WebRequest class, and how to pass
the credentials of the existing application to other
application.
Thanks
Dinesh