Hi,
We are frequently getting the following error when using a Custom WCF LOB Adapter. This error started to come up recently over a year after our first go live with the code.
Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.ServiceModel.Channels.Common.Design.AdapterCounters.Dispose()
at Microsoft.ServiceModel.Channels.Common.Design.PerformanceCounters.RegisterSystemID(String systemId)
at Microsoft.ServiceModel.Channels.Common.Design.ConnectionPoolManager.RegisterConnectionPool(String systemId, ConnectionPool connectionPool)
at Microsoft.ServiceModel.Channels.Common.Design.ConnectionPool..ctor(IConnectionFactory connectionFactory, ConnectionPoolManager manager, String systemId, String secureUriString, ConnectionPoolSettings settings)
at Microsoft.ServiceModel.Channels.Common.Channels.AdapterChannelFactory`1.GetConnectionPool(ConnectionUri connectionUri, String uriString)
at Microsoft.ServiceModel.Channels.Common.Channels.AdapterRequestChannel..ctor(IAdapterChannelFactory channelFactory, EndpointAddress address)
at Microsoft.ServiceModel.Channels.Common.Channels.AdapterChannelFactory`1.OnCreateChannel(EndpointAddress address, Uri via)
at System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
at System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address)
We are not using any custom connection pooling, and this error seems to be happening on generating the WCF LOB Adapter counters.
Has anyone ever seen this behavior? What could be causing this?
Thanks,
Mohammad