我有一个处理GPS数据的Windows服务。一切都很好,直到昨天。该服务引发了大量以下错误:
ERROR - Tuesday, November 04, 2014 3:11:40 PM : Exception:The underlying provider failed on Open.
at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)
at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesToStore(SaveOptions options, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction)
at System.Data.Entity.Core.Objects.ObjectContext.<>c__DisplayClass2a.<SaveChangesInternal>b__27()
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
at System.Data.Entity.Core.Objects.ObjectContext.SaveChangesInternal(SaveOptions options, Boolean executeInExistingTransaction)
at System.Data.Entity.Core.Objects.ObjectContext.SaveChanges(SaveOptions options)
at System.Data.Entity.Internal.InternalContext.SaveChanges()
at System.Data.Entity.Internal.LazyInternalContext.SaveChanges()
at WheelTrack.Models.WheelTrackDb.SaveChanges()
at MaestroCore.Functionality.myServer_OnDataAvailable(TcpServerConnection connection)
ERROR - Tuesday, November 04, 2014 3:03:20 PM : Exception:An exception occurred while initializing the database. See the InnerException for details.
at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
at System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c)
at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
at System.Data.Entity.Internal.InternalContext.ForceOSpaceLoadingForKnownEntityTypes()
at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()
at WheelTrack.Models.WheelTrackDb..ctor()
at MaestroCore.Functionality.myServer_OnDataAvailable(TcpServerConnection connection)
我没有改变服务或基础设施。该服务托管在GoDaddy VPS上。没有人登录服务器并改变了任何东西。
我不明白为什么会出现这个错误。现在,我重新启动了VPS,事情又回到了正轨。没有任何问题。但是为什么会出现这些问题并使服务拒绝所有传入的数据。
如果有人可以提供帮助,我们会很高兴。