我们创建了托管在各种 Windows 服务上的 WCF 服务。在另一个 Windows 服务使用 WCF 服务期间,最初一切顺利。但是连续执行一天后,突然抛出如下异常:
错误信息是Could not find endpoint element with name 'MemoryClient' and contract 'IQueue.IRepository' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.
异常的来源System.ServiceModel
异常的堆栈跟踪:
at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
at System.ServiceModel.ChannelFactory
1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress) 在 System.ServiceModel.ChannelFactory1..ctor(String endpointConfigurationName)
at EngineChannelFactory.RepositoryClient.CreateNewChannel(String strEndPoint)
THE TARGET SITE OF EXCEPTION -> Void LoadChannelBehaviors(System.ServiceModel.Description.ServiceEndpoint, System.String)
问题是,它在一段时间内消耗了相同的端点。服务重启后,问题就解决了。有没有人遇到过这个问题?这发生在安装了 .NET 3.5 的 Windows 2003 64 位服务器上。有人说这是否是环境问题,并已在 .NET 3.5 SP1 中修复?
先感谢您。