Thursday, August 21

Fixing the "Session "BizTalkDefaultTrace" failed to start with the..." error

Annoying "Session "BizTalkDefaultTrace" failed to start with the following error: 0xC0000022" error on BizTalk Server machine.


I have just finished a very grey-hair inducing multi-server, high-availability installation of BizTalk server 2013with BAM and ESB on a clustered SQL server infrastructure. (I intend to fully document the process by the way, including all the problems you can potentially face and the solutions to those probmes, as there aren't really any clear documents describing the process from beginning to end out there

As you can imagine, after soldiering my way through the myriad of problems encountered especially with the 'gotchas' of the new ESb toolkit 2.2 installation and configuring procedure keen to make sure that everything (and I mean everything) worked perfectly, and then I re-started all host instances and got the annoying error above. funny thing is, we see this error a lot in Biztalk server installations, but because it is not critica;l, noone fixes it. appraently, the fix is dead easy according to this thread:

It would appear that when you try to start a host instacne that has tracking enabled, BizTalk Server wants to start up a ETW trace session called "BizTalkDefaultTrace". This hangs because the service account user running the host instance does not have the required permissions to create the trace session, and voila, your error appears.

Simply adding your problematic service account users to the windows local group 'Performance Log Users' fixes the problem. I have shown this below in Windows server 2012 R2

Open 'Administrative Tools' from the desktop


Open 'Computer Management'


Open 'Local Users and Groups'


Find the 'Performance Log Users' group


Right-click on it and click on 'Properties'


Add each of the service account users running the problematic host instances


This should fix the issue.

Tuesday, August 12

ESB Portal Error Could not load type 'System.ServiceModel.Activation.HttpModule' ...

Fixing the “Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'’ error for a new installation of the ESB portal on BizTalk 2013:

Open IIS Manager

Open the ‘Default Website’ node
Click on the ESB.Portal application
Go the right hand pane and click on ‘Browse *:80 (http)’
If you get an error page with the message “Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'’ then use the following steps to fix it.
  1. Click on the IIS root node
  2. Click on ‘Modules’ in the middle pane
  3. In the middle pane, under the ‘Name’ column, find the ‘ServiceModel’ entry (not the ‘ServiceModel-4.0’ entry)
  4. Click on ‘Remove’ in the right pane to remove it
  5. Click on the ‘Default Website’ node
  6. In the middle pane, double-click on ‘Handler Mappings’
  7. Remove current the Managed Handler for svc-integrated (might be called svc-integrated 2.0)
  8. In the right pane, click on ‘Add Managed Handler’
  9. Enter the following parameters:
  • Request Path: *.svc
  • Type: System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
  • Name: svc-integrated-4.0
Click on ‘OK’

Try to browse the ESB Portal again. It should be fine now.