Wcf-custom adapter System.TypeInitializationException Error RRS feed

  • Question

  • Hi,


    When I use wcf-custom adapter to recieve message from sap. I receive following error in the eventlog. Has anyone seen this error before?


    The adapter "WCF-Custom" raised an error message. Details "System.TypeInitializationException: The type initializer for 'Microsoft.Adapters.SAP.SapPerfCounters' threw an exception. ---> System.InvalidOperationException: Category does not exist.
       at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
       at System.Diagnostics.PerformanceCounterCategory.CounterExists(String counterName, String categoryName, String machineName)
       at System.Diagnostics.PerformanceCounterCategory.CounterExists(String counterName, String categoryName)
       at Microsoft.Adapters.SAP.SapPerfCounters..cctor()
       --- End of inner exception stack trace ---
       at Microsoft.ServiceModel.Channels.Common.Design.AdapterAsyncResult.End()
       at Microsoft.ServiceModel.Channels.Common.Channels.AdapterReplyChannel.EndTryReceiveRequest(IAsyncResult result, RequestContext& requestContext)
       at System.ServiceModel.Dispatcher.ReplyChannelBinder.EndTryReceive(IAsyncResult result, RequestContext& requestContext)
       at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.EndTryReceive(IAsyncResult result, RequestContext& requestContext)".

    For more information, see Help and Support Center at




    Monday, February 21, 2011 10:53 AM


  • I would try doing a repair on your BizTalk adapter pack. The performance counters do not appear to be working properly. Thanks,
    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Monday, February 21, 2011 11:57 PM