Re: WSE Authentication problem when calling from a dll
- From: "Pablo Cibraro [MVP]" <pcibraro@xxxxxxxxxxx>
- Date: Tue, 22 Aug 2006 09:44:22 -0400
Hi,
Your seems to be ok, but unfortunately the error message does not say much.
You are not being able to see the trace files on the web service side
because the account running the ASP.NET worker process need write
permissions in order to create the files. You should give those permissions
first, and then, check the trace files.
Regards,
Pablo Cibraro.
"trahan" <nospam@xxxxxxxxxx> wrote in message
news:uwWT8CUxGHA.2384@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the quick reply. I've had the service send the stack trace
back on its trace, and the message is this (I am unable to generate the
traces on the webserivce itself because to run it I have to publish it
to an external server, and for some reason they don't appear there):
System.Web.Services.Protocols.SoapHeaderException: Server unavailable,
please try later ---> System.ApplicationException: WSE841: An error
occured processing an outgoing fault response. --->
System.Web.Services.Protocols.SoapHeaderException: SecurityContextToken
is expected but not present in the security header of the incoming
message.
--- End of inner exception stack trace ---
So I have the web page call a dll which calls the proxy. I set the web
page with the same policy. And I've even tried giving the username and
password that I want to use in the wse policy wizard on the web page
itself. Any other ideas on what I might look for? If you need any more
information let me know.
Here's how my dll is calling the webservice, I am trying to authenticate
with standard windows AD:
WsControllerProxy.VM_wsWse proxy = new WsControllerProxy.VM_wsWse();
UsernameToken userToken = new UsernameToken("username",
"password", PasswordOption.SendPlainText);
proxy.SetClientCredential<UsernameToken>(userToken);
And from there I call the methods on the proxy.
Thanks
*** Sent via Developersdex http://www.developersdex.com ***
.
- Follow-Ups:
- References:
- Re: WSE Authentication problem when calling from a dll
- From: Pablo Cibraro [MVP]
- Re: WSE Authentication problem when calling from a dll
- From: trahan
- Re: WSE Authentication problem when calling from a dll
- Prev by Date: Re: secure a WS called via GPRS
- Next by Date: Re: WSE 3.0 and AJAX
- Previous by thread: Re: WSE Authentication problem when calling from a dll
- Next by thread: Re: WSE Authentication problem when calling from a dll
- Index(es):
Relevant Pages
|