Re: WSE Authentication problem when calling from a dll



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 ***


.



Relevant Pages

  • [ANNOUNCE][PATCH 0 of 4] zedtrace, a general-purpose binary tracer
    ... It's called zedtrace and is ... Trace events from different subsystems ... This results in a set of per-cpu trace files in the current directory: ... script as native param variables. ...
    (Linux-Kernel)
  • Re: CLOB updates using ADODB not showing in trace file
    ... take the money and provide extended support, then I feel perfectly within rights to post a question ... SQL_TRACE is set to TRUE at the database level. ... Initially trace was being enabled via a logon database trigger, but since we noticed the problem I ... we have searched all the trace files ...
    (comp.databases.oracle.misc)
  • Re: Setting up Trace in SQL
    ... > The company has a policy and states that we have to audit> our databases. ... >>SQL Server MVP ... But supposed if I were to re-start the DB, the>>> audit does not kick off at all coz the trace files still ...
    (microsoft.public.sqlserver.security)
  • Re: WSE Authentication problem when calling from a dll
    ... I've had the service send the stack trace ... So I have the web page call a dll which calls the proxy. ... password that I want to use in the wse policy wizard on the web page ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: urgent problem that I want to have a comment about
    ... We get exactly the same problem when we build the MFC dll in debug mode. ... You have not said what kind of trace facility you are using, and therefore, there is no ... If these "really good trace files" allocate memory, ...
    (microsoft.public.vc.mfc)

Quantcast