WCF: Federating WCF with WIF

Ask: Federate WCF service via WIF   Traditional approach: For normal web app or MVC app, we follow the concept of FedAuth cookie. Client -> Federated Application, gets redirected to STS Client -> STS, get claims Client -> Federated Application validates claims and issue a Fed Auth Cookie. Client -> This time call made with…

0

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 code: https://1drv.ms/f/s!ArgnWb8iHXB6gqcg43hmT5jjbKJ-IA We can disable SSL 3.0 and TLS 1.0 inside server key and we get below failure stack. Failure Stack: 29 clr!IL_Throw+0x184     2a System_IdentityModel_ni!System.IdentityModel.SspiWrapper.AcquireCredentialsHandle(System.String, System.IdentityModel.CredentialUse, System.IdentityModel.SecureCredential)+0xd71ca     2b System_ServiceModel_ni!System.ServiceModel.Security.TlsSspiNegotiation.AcquireDummyCredentials()+0x73     2c System_ServiceModel_ni!System.ServiceModel.Security.TlsSspiNegotiation..ctor(System.String, Boolean, System.IdentityModel.SchProtocols, System.Security.Cryptography.X509Certificates.X509Certificate2,…

0

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 https://www.microsoft.com/en-us/download/details.aspx?id=54440. The detailed hotfix information is listed on https://support.microsoft.com/en-us/kb/3199763.   It has fix for the following three types of issues: 1.      Fixed a memory leak that occurs in specific scenarios. When a dependent service of AppFabric is unresponsive, this results…


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. Generate the private and public keys in C#. See code below:   public void GenerateKeys(out byte[] privateKey, out byte[] publicKey) {     using (var rsa = new RSACryptoServiceProvider(2048))     {         rsa.PersistKeyInCsp = false;         privateKey = rsa.ExportCspBlob(true);        …

0

Collecting diagnostics for WCF (hosted in IIS) & Web Service performance related issues

Say for example you are troubleshooting a high CPU or a slow response or a hang issue. For diagnostics collect the following from the server side: IIS Logs (Location: %SystemDrive%\inetpub\logs\LogFiles) FREB traces (see steps below) PerfView traces (see steps below) Dumps of the IIS worker process (w3wp.exe) hosting your WCF or Web service, captured during…

0

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 in deciding when to use an extra CPU to process COM+ requests? Ideally to answer this in one line I would have to say: there is no additional way for the OS to decide that a thread…

0

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 only when the ActiveX is hosted in IE11. The issue does not occur when the same ActiveX control is hosted on a Win Form application. To repro the issue here is what you need to do: Please refer…

0

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 (https://msdn.microsoft.com/en-us/library/system.activities.statements.delay(v=vs.110).aspx) in a workflow service application. To summarize, I am sharing the essence out of it. WF service Designed WF service (.xamlx) with a delay   Please note the Delay activity is introduced between ReceiveRequest and SendResponse.  It…


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 update, version 1607. KB3154518 suggests the support for TLS v1.2 included in the .NET Framework version 3.5.1. On Windows 10 version 1511 OS, the below repro code when built with .NET 3.5, runs successfully and uses TLS…

0