WCF:提供程序未返回ProviderManifestToken字符串

时间:2012-10-31 09:40:12

标签: sql-server wcf

我刚收到这个错误,我想我会分享它,以便其他人不花一个小时试图弄清楚出了什么问题。我有SQL Server 2008 Express和WCF服务,工作正常。突然间它停止了工作。这是错误消息

  

服务器在处理请求时遇到错误。例外   消息是'提供者没有返回ProviderManifestToken   串。'。请参阅服务器日志以获取更多详异常堆栈跟踪   是:

     

在   System.Data.Common.DbProviderServices.GetProviderManifestToken(的DbConnection   连接)   System.Data.Entity.ModelConfiguration.Utilities.DbConnectionExtensions.GetProviderInfo(的DbConnection   连接,DbProviderManifest& providerManifest)at   System.Data.Entity.DbModelBuilder.Build(的DbConnection   providerConnection)   System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext   internalContext)at   System.Data.Entity.Internal.RetryLazy 2.GetValue(TInput input) at System.Data.Entity.Internal.LazyInternalContext.InitializeContext() at System.Data.Entity.Internal.InternalContext.Initialize() at System.Data.Entity.Internal.LazyInternalContext.get_ObjectContext() at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext() at lambda_method(Closure , Object ) at System.Data.Services.Providers.DbContextHelper.GetObjectContext(Object o) at System.Data.Services.Caching.MetadataCache 1.TryLookup(类型   serviceType,Object dataContextInstance)at   System.Data.Services.Providers.BaseServiceProvider.LoadMetadata()at   System.Data.Services.DataService 1.CreateMetadataAndQueryProviders(IDataServiceMetadataProvider& metadataProviderInstance, IDataServiceQueryProvider& queryProviderInstance, BaseServiceProvider& builtInProvider, Object& dataSourceInstance) at System.Data.Services.DataService 1.CreateProvider()at   System.Data.Services.DataService 1.EnsureProviderAndConfigForRequest() at System.Data.Services.DataService 1.HandleRequest()at   System.Data.Services.DataService`1.ProcessRequestForMessage(流   messageBody)在SyncInvokeProcessRequestForMessage(Object,Object [],   对象[])在   System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(对象   实例,对象[]输入,对象[]&输出)   System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&安培;   rpc)at   System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc&安培;   rpc)at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean   isOperationContextSet)

1 个答案:

答案 0 :(得分:0)

问题是SQL Server Windows服务以某种方式停止了。重启后,一切都恢复正常。