Quantcast
Channel: Distributed Services: Notes from the field
Browsing index pages (164 articles)

WIF: CryptographicException: Key not valid for use in specified state | solve...

I had a customer who has a claim aware ASP.NET web application hosted on two IIS servers behind a load balancer.   Scenario: They had a requirement where they would want to stop (bring down) server1 to...

View Article


Image may be NSFW.
Clik here to view.

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

View Article


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

View Article

AppFabric: Caching service crashed with exception {System.ArgumentException:...

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

View Article

Image may be NSFW.
Clik here to view.

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

View Article


Image may be NSFW.
Clik here to view.

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

View Article

WS/WCF: Remove Server Header

Requirement: Need to suppress all instances of the HTTP ‘Server’ header from all HTTP responses including invalid requests that never even reach the application process. Why we need this: Exposing...

View Article

Image may be NSFW.
Clik here to view.

WIF: Active authentication against “usernamemixed” ADFS endpoint

Scenario One of my customers recently wanted to help write code/ configuration in the following scenario. ASP.NET web application and WCF service would be hosted on two different machines (IIS web...

View Article


Recovering COM+ Applications from a hang state

Recently, I worked with some customer problems where they encountered issues with COM+ application going into a hang state. This causes sometimes the main applications to wait indefinitely without...

View Article


AF: AppFabric Invalid Version Error

On a clustered environment when you try to start the AppFabric caching service you may encounter the error AppFabric Invalid Version Error. You will see the following exception logged in the AppFabric...

View Article

CryptoConfig is not able to identify HashPbkdf2 from the machine.config file,...

To know more about CryptoConfig please refer to https://msdn.microsoft.com/en-us/library/system.security.cryptography.cryptoconfig(v=vs.110).aspx It's a class that accesses the cryptography...

View Article

PBKDF2 .Net API does not exists with SHA256 implementation. Here PBKDF2...

PBKDF2 .Net API does not exists with SHA256 implementation. This is true and we know that we have the Rfc2898DeriveBytes class which implements password-based key derivation functionality, PBKDF2, by...

View Article

Image may be NSFW.
Clik here to view.

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 help of System.Net.Http.HttpClient modules (introduced in .NET 4.5). I hope the following details would...

View Article


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

IIS 10 came with new feature to support Wild Card Host Headers. https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/wildcard-host-header-support Does WCF support it? WCF does not...

View Article

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 service over SSL/TLS channel, we receive a 403.16 error code. Troubleshooting We can collect server...

View Article


ASMX/WS/WCF Web Service: System.Net.Sockets.SocketException: An existing...

Issue: Intermittent Socket exception seen on client application trying to fetch data from MS web services. Troubleshooting: I recommend collecting application level traces to collect the stack trace...

View Article

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 protocol. Ask: If we need to force it to use TLS1.2 protocol, review below workarounds. Workaround 1: Use...

View Article


WIF: Memory leak issue with WIF 3.5 – Microsoft.IdentityModel.Tokens –...

Issue:Recently we came across a case where memory leak issue is identified within WIF 3.5 DLL inside the "Microsoft.IdentityModel.Tokens" class. How does this happen: The source code has a coding BUG...

View Article

Image may be NSFW.
Clik here to view.

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 API application, and later be consumed by a rich desktop client like WPF. It had one OAuth 2.0...

View Article

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

Issue: WIF10201: No valid key mapping found for securityToken: This exception is observed on a federated application(web app / mvc / asmx / wcf) using WIF pipeline to authenticate the user. Stack:...

View Article
Browsing index pages (164 articles)


Latest Images