all groups > dotnet web services > january 2008 >
You're in the

dotnet web services

group:

WCF - MessageSecurityException - when can it occur?


WCF - MessageSecurityException - when can it occur? pstachowicz@onet.eu
1/28/2008 6:40:38 AM
dotnet web services:
Hi,

Is it possible to get MessageSecurityException after the security
context has been negotiated and the service operation has been
executed?

i.e. Can I assume that when I get this exception the method has never
been executed?

Thanks,
Re: WCF - MessageSecurityException - when can it occur? Tiago Halm
2/2/2008 12:20:16 AM
Don't assume. Trace the call and look into it via "svctraceviewer.exe".
Setup trace by including something like:

<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Verbose,
ActivityTracing" propagateActivity="true">
<listeners>
<add name="xml" />
</listeners>
</source>
<source name="System.ServiceModel.MessageLogging" switchValue="All">
<listeners>
<add name="xml" />
</listeners>
</source>
</sources>
<sharedListeners>
<add
name="xml"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="c:\temp\trace.svclog" />
</sharedListeners>
</system.diagnostics>

Tiago Halm

[quoted text, click to view]

AddThis Social Bookmark Button