Calling ws secured by Forms Auth. from WinForms userctrls in HTML
- From: Michael Brandt Lassen <MichaelBrandtLassen@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Apr 2005 04:59:02 -0800
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
.
- Prev by Date: Re: notify icon and context menu for Windows Service Application
- Next by Date: Re: SetParent Windows API function notworking with VB 6 forms
- Previous by thread: notify icon and context menu for Windows Service Application
- Next by thread: ASP.NET 2.0 Beta 2 Released This Morning...
- Index(es):
Relevant Pages
|