Change the way you define your identity with .NET 3.5 SP1

A service’s endpoint identity is an important entity in an authentication process. Any WCF developer should have a good understanding of what it is, how it is set at the service and client and what part it plays in the overall authentication process. For those in doubt, MSDN article on ‘Service Identity and Authentication’ will…

0

Issued Tokens Renewal : Get your token expiration time set correctly by STS

Working with issued token is always fun. The whole possibility of making 3 components (client, RP and STS) to work seamlessly excites me to no end. Of late I worked on an interesting token renewal issue where the client was not requesting a new SAML token from the STS, even after expiration. An effect of…

1

Mind the case and space when configuring your protocol bindings inside IIS 7.0 to enable net.tcp

We all are aware that WCF provides a new TCP-based network protocol (net.tcp://) for high performance communication. People who are familiar with this particular protocol will know that for a IIS 7.0 hosted WCF service to utilize this protocol, we need to enable appropriate protocol (namely net.tcp) at the web site and virtual directory level…

3

WCF: Calling WCF service hosted in IIS on the same machine as client throws authentication error

Scenario: A WCF service hosted in IIS that is invoked from another WCF service or ASP.NET application hosted in IIS on the same machine, throws the following error:                 “The HTTP request is unauthorized with client authentication scheme ‘Ntlm’. The authentication header received from the server was ‘Negotiate,NTLM”‘.The key here is that it fails only for local…

0

New transaction cannot enlist in the specified transaction coordinator when using Oracle OLE DB provider

SYMPTOMS A COM+ application that uses Oracle 9i fails intermittently on Windows 2003 Service Pack 2. The application logs the follow error in the event log: Event Type:     Error Event Source:  ************ Event Category:          None Event ID:        0 Date:               9/14/2009 Time:               10:46:51 PM User:                N/A Computer:       ************ Description: Error: PID 1160 — CATCHFAILED2 ERROR: 0x8004d00a…

0

Event ID 4156 with RPC_S_INVALIDA_ARG is logged intermittently when MSDTC Mutual Authentication is not required

SYMPTOMS  Intermittently MSDTC 4156 error message with RPC_S_INVALIDA_ARG in the event details is logged in the event log when MSDTC is configured with Mutual Authentication not required. Event Type: Error Event Source: MSDTC Event Category: CM Event ID: 4156 Date: 10/29/2009 Time: 4:22:02 PM User: N/A Computer: ********* Description: String message: RPC raised an exception…

5

How to Correctly Retrieve the Value of MessageHeaders in WCF MessageInspector

Problem Description A WCF message inspectors pass a custom message header from the client caller to the WCF service hosted in a Windows service over TCP. A ClientMessageInspector adds in the custom header.  A DispatchMessageInspector looks for the custom header and interrogates it if it is present. The DispatchMessageInspector looks for the custom header and…

1

Issues to Be Aware of When Using COM+ QueuedComponent with Object Pooling

Problem Description The component is a COM+ event class. It is also a COM+ QueuedComponent (QC) and has object pooling enabled. The clients are a COM+ event publisher. They call into the event component to fire an event. Subscribers are notified of the event. The application works for about a few minutes and then stops…

0

TimeoutException Is Thrown in System.Transactions When Using the IBM Informix OLE DB Provider

Problem Description A .NET WinForms application creates a distributed transaction that inserts a row into a remote Informix OLE DB database. The .NET app uses System.Transactions and the IBM Informix OLE DB Provider. The transaction starts timing out when calling TransactionScope.Complete().  It is throwing a TransactionAbortedException in one minute. The inner exception is TimeoutException. If…

0