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.