Distributed Services: Notes from the field

One Stop for Windows Communication Foundation, Microsoft Distributed Services and Com+ Solutions

WIF: CryptographicException: Key not valid for use in specified state | solve using matching machine keys

I had a customer who has a claim aware ASP.NET web application hosted on two IIS servers behind a...

Date: 09/03/2018

WCF: Verbose PII Tracing

WCF PII Verbose tracing ==== Depending on app built, update the machine.config file Add line:...

Date: 06/18/2018

Difficulties reading PSObject using WCF Message class

Issue: We would not be able to deserialize powershell object (PSObject) using WCF Message class...

Date: 05/07/2018

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

Date: 05/07/2018

WCF: Windows authentication and streaming support

Issue: We had a requirement to use STREAMING protocol along with WINDOWS AUTHENTICATION. Out of the...

Date: 04/16/2018

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

Date: 03/15/2018

WS/WCF: Remove Server Header

Requirement: Need to suppress all instances of the HTTP ‘Server’ header from all HTTP responses...

Date: 12/18/2017

WIF: Active authentication against "usernamemixed" ADFS endpoint

Scenario One of my customers recently wanted to help write code/ configuration in the following...

Date: 11/29/2017

AF: AppFabric Invalid Version Error

On a clustered environment when you try to start the AppFabric caching service you may encounter the...

Date: 10/19/2017

PBKDF2 .Net API does not exists with SHA256 implementation. Here PBKDF2 stands for “Password-Based Key Derivation Function 2”.

PBKDF2 .Net API does not exists with SHA256 implementation. This is true and we know that we have...

Date: 09/20/2017

WCF: Consume WCF REST service by HttpClient

In a recent case, one of my customers requested how to consume the WCF REST Service by taking the...

Date: 09/19/2017

WCF: Support for Wild Card Host Header at IIS 10 and above

IIS 10 came with new feature to support Wild Card Host Headers....

Date: 07/07/2017

WCF/WS: SSL Mutual Client Cert Authentication 403.16 or 403.7

Problem When attempting to use a certificate to authenticate to an IIS website or self hosted WCF...

Date: 06/12/2017

ASMX/WS/WCF Web Service: System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

Issue: Intermittent Socket exception seen on client application trying to fetch data from MS web...

Date: 06/05/2017

WCF/WS/TLS: Get .Net Framework 4.0 application use TLS1.2 as default protocol

Issue: By default, .net application built on framework 4.0 will use SSL3.0 or TLS1.0 as default...

Date: 06/01/2017

WIF: Memory leak issue with WIF 3.5 - Microsoft.IdentityModel.Tokens - SecurityTokenCacheKey

Issue:Recently we came across a case where memory leak issue is identified within WIF 3.5 DLL inside...

Date: 05/22/2017

ADAL: Secure Web API with ADFS 3.0 for Desktop Client

I came across one of the requirements, where my customer requested me to create a sample ASP.NET WEB...

Date: 05/10/2017

WIF: WIF10201: No valid key mapping found for securityToken:

Issue: WIF10201: No valid key mapping found for securityToken: This exception is observed on a...

Date: 04/27/2017

WCF: Federating WCF with WIF

Ask: Federate WCF service via WIF Traditional approach: For normal web app or MVC app, we follow the...

Date: 04/24/2017

WCF: Message Security limitation with TLS 1.2 protocol

Issue: WCF Message Security breaks when using or forced to use TLS 1.1 or TLS 1.2 protocol. Re-pro...

Date: 04/13/2017

Additional details on AF CU8 release

The latest version of AF 1.1 CU (cumulative update) 8 was released on 12/7/2016, and available on...

Date: 02/02/2017

CSP Blobs between C# and C++ - Interoperation with the Microsoft Cryptographic API (CAPI)

If you have a requirement as follows: Interoperate between C# & C++ using cryptographic blobs....

Date: 12/31/2016

How the OS behaves in deciding when to use an extra CPU?

I typically got this question from a customer who was explicitly trying to know: How the OS behaves...

Date: 12/30/2016

Internet Explorer 11 hosting a Drag & Drop ActiveX control advances from onDragEnter to OnDrop instead of onDragEnter -> onDragOver on Windows 10 x86 and x64 iexplore processes.

The issue as stated in the title is reproducible on fast dragging. See details below. This happens...

Date: 12/30/2016

WF: Delay activity in workflow as a concept

Recently, I have come across a case, where a lot of questions are being raised around delay activity...

Date: 12/28/2016

The TLS1.2 on .NET framework 3.5 using KB3156421 doesn’t work in the Windows 10 anniversary update.

We have an issue with usage of TLS v1.2 with .NET Framework version 3.5.1 on Windows 10 anniversary...

Date: 12/15/2016

AppFabric: Cumulative Update 7 For Microsoft AppFabric 1.1 for Windows Server – Instruction

Please visit below KB to get CU 7: https://support.microsoft.com/en-us/kb/3092423   To apply this...

Date: 11/07/2016

SSL/TLS - Decrypt the encrypted network traces

Ask: As we know SSL/TLS is encrypted traffic using symmetric keys created during SSL/TLS handshake....

Date: 10/31/2016

How to make wcf service read messages from messaging queue after IIS reset?

Problem Definition WCF service is not able to read messages from the private queue automatically...

Date: 10/27/2016

SSL/TLS - Introduction To CAPI2 Traces

Introduction:CAPI2 traces are part of windows OS and can be enabled from event viewer section. Very...

Date: 10/27/2016

WCF: Mutual SSL Client Cert Authentication Guide With Sample App

Issue: Challenges while we try to use the SSL Mutual Authentication with Client Certificates for WCF...

Date: 09/15/2016

Issue: You have a WCF service using the security mode as “Message” and hosted behind a load balancer...

Date: 09/14/2016

WCF: FindBySubjectKeyIdentifier x509FindType search for client certificate

Problem Description WCF service is configured with basicHttpBinding, security mode Transport and...

Date: 09/12/2016

WCF: Intermittent connectivity issue with private MSMQ - WCF stops reading messages from queue

Issue: WCF intermittently stops reading messages from the private local MSMQ, which will cause...

Date: 09/08/2016

WIF: Long live My Session - Session Authentication Module To Avoid STS Redirect

Issue: We are talking about problem where the SAML Token Validity Time set via custom STS is less (5...

Date: 09/08/2016

How to rename the App Fabric service after renaming the server.

Issue: People generally rename the server without removing it from the AppFabric cache cluster. This...

Date: 09/06/2016

WCF/WIF: JWT Token Validator

Issue: Client > JWT Token -> REST Service -> SOAP Service Steps: ======== 1. User call the...

Date: 09/05/2016

WCF: CORS support for self-hosted WCF REST service

Problem statement WCF rest service is self-hosted. Client application is web based, and hosted on...

Date: 08/31/2016

OWIN cookies SignIn error with AD FS

Problem Statement: Claims aware web application logs in using ADFS for the first time successfully...

Date: 08/25/2016

WCF: POC for SAML Token Creation and Consumption

WCF: POC for SAML Token Creation and Consumption Agenda: We will understand how we can create a...

Date: 07/31/2016

Workflow Service application - IIS hosting

Today - we are going to talk about hosting workflow service application on IIS. Recently, I came...

Date: 07/13/2016

Web Service error - Request format is unrecognized.

Problem Statement: While trying to browse an asmx Web Service, you get the following error: Request...

Date: 06/17/2016

App Fabric - Downgrading from Cumulative Updates to RTM

Problem Statement Cumulative updates for AppFabric can be removed using the “Programs and Features...

Date: 06/13/2016

WCF: SSL offloading in load balancer - a simple approach

Problem statement 1. There are two machines behind load balancer. 2. These machines host same...

Date: 05/14/2016

ASMX: Service reference API invocation fails with MessageSecurityException

Problem statement 1. Web service application (ASMX) is hosted on Windows server 2008 R2 (SQL...

Date: 05/05/2016

How a .Net application loads a .Net COM class

In .NET COM, do you know how AppDomain::LoadCOMClass() works? In CLR 4.0, it’s...

Date: 05/04/2016

Next>