Workflow Service application – IIS hosting

Today – we are going to talk about hosting workflow service application on IIS.   Recently, I came across a case where customer wanted to host the workflow service application on IIS with windows authentication enabled. We need to ensure we follow the inherited concepts of WCF service application configuration and hosting.   Create workflow service…


Web Service error – Request format is unrecognized.

Problem Statement: While trying to browse an asmx Web Service, you get the following error: Request format is unrecognized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Request format…

0

App Fabric – Downgrading from Cumulative Updates to RTM

Problem Statement Cumulative updates for AppFabric can be removed using the “Programs and Features -> Installed Updates” option in Windows Server. While removing any of the CUs to revert back the original version of AppFabric you may face the following error: “The feature you are trying to use is on a network resource that is…

0

WCF: SSL offloading in load balancer – a simple approach

Problem statement 1. There are two machines behind load balancer. 2. These machines host same version of the WCF service with wsHttpBinding and no security. 3. It means WCF services are available over http behind the load balancer. 4. Load balancer is configured with a server certificate (i.e. SSL). 5. It means to the outside world, it will be a…


ASMX: Service reference API invocation fails with MessageSecurityException

Problem statement 1. Web service application (ASMX) is hosted on Windows server 2008 R2 (SQL service). The service application can also be hosted on IIS. The service is available over http. 2. From client machine and a console application, the web reference method call succeeds. 3. From the same client machine and console application, the…


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 clr!AppDomain::LoadCOMClass() In .NET 2.0, it’s mscorwks!AppDomain::LoadCOMClass() In 2.0 & 4.0 (or above) it first checks the shim info which is retrieving the class name and other information associated with a given GUID in a component’s manifest. This is done by calling SxsLookupClrGuid….

0

Data collection scenarios using ProcDump

In this topic, we are going to discuss about memory dump collection techniques from field experience. ProcDump.exe is a very helpful tool that monitors the process and helps in grabbing memory dumps. Monitor for first chance exceptions C:\Temp>procdump.exe –e 1 –f “” ProcessNameOrProcessId C:\Temp>procdump.exe -e 1 -f “” 6532 ProcDump v7.1 – Writes process dump files Copyright…


WCF: DateTime localization challenge

Issue 1.    Client desktop application consumes WCF service. 2.    WCF service communicates with SQL database in the background. 3.    Client application passes DateTime value in local time zone. 4.    WCF service receives the DateTime value (Dataset was the wrapping type) in UTC. 5.    Hence, SQL database stores the propagated DateTime value in UTC. 6.    My customer’s requirement…


WCF: Custom encoder to read MTOM response

Today I will talk about one of the weird issues related to encoder. Issue Client application should send an MTOM encoded request message to 3rd party web service. The web service will respond it with a TEXT encoded response message. How can .net client support this ambiguity in encoder level? Assessment When client is configured…


WCF: How to send two different client certificates as credentials at both Transport and Message Level

WCF: How to send two different client certificates as credentials at both Transport and Message Level   Requirement: Transport Security Details A secure transport layer via mutually authenticated SSL/TLS (MASSL) is required. Mutually authenticated SSL requires the use of a client certificate to be provided to the server and validated by the server. If a…

0