471,616 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

Calling ws secured by Forms Auth. from WinForms userctrls in HTML

Hi gurus

This problem is about calling Web services secured by Forms Authentication
from Windows Forms user controls embedded in HTML.

Using the object tag I’ve managed to include a Windows Forms user control in
my HTML page (a .NET alternative to good old ActiveX).

I’d like to use my control to call web-services instead of using behaviours
(webservices.htc).

Now I what to secure my web-services using Forms Authentication on the IIS.
This works just fine for manual browsing of the web service. The asmx-files
are protected by Forms Authentication just as aspx-files.

If I use the web service behaviour I have no problems calling the web
service secured by Forms Authentication (after logon of course).

But when the embedded Windows Forms user control tries to access the web
service secured by Forms Authentication I get an Object Moved error. This
happens because the service is redirected to the login page, even though user
is all ready logged in. How do I solve this problem?

--
best regards,

Michael Brandt Lassen, Developer & Architect
3F, Denmark
Jul 21 '05 #1
0 1516

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by dhnriverside | last post: by
2 posts views Thread by code | last post: by
1 post views Thread by securedcardss | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.