I got the following error;
Event code: 3008
Event message: A configuration error has occurred.
Event time: 9/01/2012 11:14:01 a.m.
Event time (UTC): 8/01/2012 10:14:01 p.m.
Event ID: bb7f2e13c8714bec8168096629000ef0
Event sequence: 1
Event occurrence: 1
Event detail code: 0
Application domain: /LM/W3SVC/1/ROOT/ESB.BizTalkOperationsService-2-129705344411112734
Trust level: Full
Application Virtual Path: /ESB.BizTalkOperationsService
Application Path: C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit 2.1\Web\ESB.BizTalkOperationsService\
Machine name: BT10NOVS
Process ID: 4072
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception type: ConfigurationErrorsException
Exception message: Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
….plus more deleted.
I had been trialling a production install of the ESB Management Portal on a server that did not have visual studio installed. What i had forgotten was to manually register ASP.Net 4 with IIS. As soon as i ran C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe /i the problem was solved.