By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,838 Members | 2,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,838 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.