WCF: Verbose PII Tracing

WCF PII Verbose tracing ==== Depending on app built, update the machine.config file Add line: <machineSettings enableLoggingKnownPii=”true”/> <!– Sample –> <system.serviceModel> <machineSettings enableLoggingKnownPii=”true”/> OUTSIDE <System.ServiceModel> tag add below lines: <system.diagnostics> <sources> <source logKnownPii=”true” name=”System.ServiceModel.MessageLogging” switchValue=”Verbose,ActivityTracing”> <listeners> <add type=”System.Diagnostics.DefaultTraceListener” name=”Default”> <filter type=”” /> </add> <add name=”ServiceModelMessageLoggingListener”> <filter type=”” /> </add> </listeners> </source> <source propagateActivity=”true” name=”System.ServiceModel” switchValue=”Verbose,ActivityTracing”>…

0

Difficulties reading PSObject using WCF Message class

Issue: We would not be able to deserialize powershell object (PSObject) using WCF Message class directly. Error: “The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.xyz.com/Services/MyService:DoServiceResult. The InnerException message was ‘Member ‘CliXml’ was not found.’.”.   • Cause – Failing Message: <CliXml i:type=”d3p1:string”…

0

AppFabric: Caching service crashed with exception {System.ArgumentException: An entry with the same key already exists.

Recently we had some cases where AppFabric caching service was crashing with error “An entry with the same key already exists.” Issue: In the AppFabric event logs (Applications and Services Logs > Microsoft > Windows > Application Server-System Services), we’ll see below error logged. AppFabric Caching service crashed with exception {System.ArgumentException: An entry with the…

0

WCF: Windows authentication and streaming support

Issue: We had a requirement to use STREAMING protocol along with WINDOWS AUTHENTICATION. Out of the box configuration:                 Above binding configuration will not help us here and we will end up seeing below error. Error Message: $exception {“HTTP request streaming cannot be used in conjunction with HTTP…

0

WIF: Fetch SAML tokens from IssuedToken* endpoint for backend service call

Recently, I have across a scenario where the requirement is to fetch token from “IssuedToken*” active ADFS endpoints. Once application has the token from “IssuedToken*” endpoint, it would have to present the token to backend WCF service application operation invokes. We went through a lot of hardship to figure out the right binding and ADFS…