Monthly Archives: February 2011

How to gac a component at compile time

Rather than manually having to gac dll’s after compiling, you can add build events to the project to automatically unregister and register the compiled dll’s into the registry. The following script below will unregister the dll “%programfiles%\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\x64\gacutil.exe” … Continue reading

Posted in Uncategorized | Leave a comment

Writing to the Windows Event Log from a BizTalk Orchestration.

The following code writes a message to the windows event application log under the existing event source “BizTalk Server”. System.Diagnostics.EventLog.WriteEntry(“BizTalk Server”,”This is the error message”,System.Diagnostics.EventLogEntryType.Error,0); The code above is normally placed inside an Expression shape in the orchestration as shown … Continue reading

Posted in Biztalk | Tagged , , | Leave a comment

Content based routing with WCF 4.0

This examples shows how easily it is to route messages based on message headers using WCF4 For this example I built two similar request-response WCF services with different service contract namespaces. One simply adds the two numbers together while the … Continue reading

Posted in WCF | 1 Comment