Powershell 在Windows 10 server got上通过PS远程处理在vNext生成中运行WebTest;System.Data.Entity.Core.ProviderIncompatibleException“;

Powershell 在Windows 10 server got上通过PS远程处理在vNext生成中运行WebTest;System.Data.Entity.Core.ProviderIncompatibleException“;,powershell,tfs-2015,webtest,vnext,Powershell,Tfs 2015,Webtest,Vnext,在TFS vNext构建中,我通过PS远程处理将服务器webtests部署到一个Windows 10测试代理并运行所有webtests。它不稳定,因为有时我会遇到“System.Data.Entity.Core.ProviderIncompatibleException”错误(见下文) 服务器上已安装Visual Studio 2015。sam条件下的相同测试在Windows 7测试代理上运行良好 原因是什么?我如何解决这个问题?非常感谢 <Timestamp> [5] ERROR

在TFS vNext构建中,我通过PS远程处理将服务器webtests部署到一个Windows 10测试代理并运行所有webtests。它不稳定,因为有时我会遇到“System.Data.Entity.Core.ProviderIncompatibleException”错误(见下文)

服务器上已安装Visual Studio 2015。sam条件下的相同测试在Windows 7测试代理上运行良好

原因是什么?我如何解决这个问题?非常感谢

<Timestamp> [5] ERROR <MyService>.GlobalExceptionHandler:29 - Internal Server Error!
System.Data.Entity.Core.ProviderIncompatibleException: The provider did not return a ProviderManifest instance. ---> System.Runtime.InteropServices.COMException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
at System.Security.Policy.PEFileEvidenceFactory.GetLocationEvidence(SafePEFileHandle peFile, SecurityZone& zone, StringHandleOnStack retUrl)
at System.Security.Policy.PEFileEvidenceFactory.GenerateLocationEvidence()
at System.Security.Policy.PEFileEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.AssemblyEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.Evidence.GenerateHostEvidence(Type type, Boolean hostCanGenerate)
at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
at System.Security.Policy.Evidence.GetHostEvidence(Type type, Boolean markDelayEvaluatedEvidenceUsed)
at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.Evidence.GenerateHostEvidence(Type type, Boolean hostCanGenerate)
at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext()
at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName)
at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath)
at System.Configuration.ClientConfigPaths..ctor(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Xml.XmlConfiguration.XmlReaderSection.get_ProhibitDefaultUrlResolver()
at System.Xml.Schema.Parser..ctor(SchemaType schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler)
at System.Xml.Schema.XmlSchema.Read(XmlReader reader, ValidationEventHandler validationEventHandler)
at System.Data.Entity.Core.SchemaObjectModel.Schema.SomSchemaSetHelper.AddXmlSchemaToSet(XmlSchemaSet schemaSet, XmlSchemaResource schemaResource, HashSet`1 schemasAlreadyAdded)
at System.Data.Entity.Core.SchemaObjectModel.Schema.SomSchemaSetHelper.ComputeSchemaSet(SchemaDataModelOption dataModel)
at System.Data.Entity.Core.Common.Utils.Memoizer`2.<>c__DisplayClass2.<Evaluate>b__0()
at System.Data.Entity.Core.Common.Utils.Memoizer`2.Result.GetValue()
at System.Data.Entity.Core.Common.Utils.Memoizer`2.Evaluate(TArg arg)
at System.Data.Entity.Core.SchemaObjectModel.Schema.CreateXmlReaderSettings()
at System.Data.Entity.Core.SchemaObjectModel.Schema.Parse(XmlReader sourceReader, String sourceLocation)
at System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption dataModel, AttributeValueNotification providerNotification, AttributeValueNotification providerManifestTokenNotification, ProviderManifestNeeded providerManifestNeeded, IList`1& schemaCollection)
at System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate(IEnumerable`1 xmlReaders, IEnumerable`1 sourceFilePaths, SchemaDataModelOption dataModel, DbProviderManifest providerManifest, IList`1& schemaCollection)
at System.Data.Entity.Core.SchemaObjectModel.SchemaManager.LoadProviderManifest(XmlReader xmlReader, String location, Boolean checkForSystemNamespace, Schema& schema)
at System.Data.Entity.Core.Common.DbXmlEnabledProviderManifest.Load(XmlReader reader)
at System.Data.Entity.Core.Common.DbXmlEnabledProviderManifest..ctor(XmlReader reader)
at System.Data.SQLite.EF6.SQLiteProviderManifest..ctor(String manifestToken)
at System.Data.SQLite.EF6.SQLiteProviderServices.GetDbProviderManifest(String versionHint)
at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifest(String manifestToken)
--- End of inner exception stack trace ---
at System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifest(String manifestToken)
at System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection connection, DbProviderManifest& providerManifest)
at System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection)
at 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.GetEntitySetAndBaseTypeForType(Type entityType)
at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
at System.Data.Entity.Internal.Linq.InternalSet`1.Create()
at System.Data.Entity.DbSet`1.Create()   
at <MyService>.Persistence.EF.DeploymentRepository.CreateDeployment(String name, DeploymentStatus status)
at <MyService>.Persistence.EF.DeploymentRepository.CreateDeployment(String name)
at <MyService>.Controllers.DeploymentController.<CreateDeploymentAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.HttpServer.<SendAsync>d__0.MoveNext()
[5]错误。GlobalExceptionHandler:29-内部服务器错误!
System.Data.Entity.Core.ProviderIncompatibleException:提供程序未返回ProviderManifest实例。-->System.Runtime.InteropServices.COMException:灾难性故障(来自HRESULT:0x8000FFFF的异常(E_意外))
位于System.Security.Policy.pefileenvironceFactory.GetLocationEvidence(SafePEFileHandle peFile、SecurityZone和zone、StringHandleOnStack retUrl)
在System.Security.Policy.PEFileEvidenceFactory.GenerateLocationVidence()中
在System.Security.Policy.PEFileEvidenceFactory.GenerateEvidence(类型:证据类型)中
在System.Security.Policy.AssemblyEvidenceFactory.GenerateEvidence处(类型为证据类型)
在System.Security.Policy.Evidence.GenerateHostEvidence(类型类型,Boolean hostCanGenerate)
位于System.Security.Policy.Evidence.GetHostEvidenceNoLock(类型)
位于System.Security.Policy.Evidence.GetHostEvidence(类型,布尔markDelayEvaluatedEvidenceUsed)
在System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence中(类型为证据类型)
在System.Security.Policy.Evidence.GenerateHostEvidence(类型类型,Boolean hostCanGenerate)
位于System.Security.Policy.Evidence.GetHostEvidenceNoLock(类型)
在System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext()中
在System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()中
位于System.Configuration.ClientConfigPaths.getEvelenceInfo(AppDomain AppDomain、String exePath、String和typeName)
位于System.Configuration.ClientConfigPath.GetTypeAndHashSuffix(AppDomain AppDomain,String exePath)
位于System.Configuration.ClientConfigPath..ctor(字符串exePath,布尔includeUserConfig)
位于System.Configuration.ClientConfigPath.GetPath(字符串exePath,布尔includeUserConfig)
在System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord)中
位于System.Configuration.BaseConfigurationRecord.GetSectionRecursive(字符串configKey、布尔getLkg、布尔checkPermission、布尔getRuntimeObject、布尔RequestISHER、对象与结果、对象与结果EntimeObject)
位于System.Configuration.BaseConfigurationRecord.GetSection(字符串configKey)
位于System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(字符串sectionName)
位于System.Configuration.ConfigurationManager.GetSection(字符串sectionName)
在System.Xml.XmlConfiguration.XmlReaderSection.get_ProhibitDefaultUrlResolver()中
在System.Xml.Schema.Parser..ctor(SchemaType SchemaType,XmlNameTable nameTable,SchemaNames SchemaNames,ValidationEventHandler)
位于System.Xml.Schema.XmlSchema.Read(XmlReader阅读器,ValidationEventHandler ValidationEventHandler)
在System.Data.Entity.Core.SchemaObjectModel.Schema.SomSchemaSetHelper.AddXmlSchemaToSet(XmlSchemaSet schemaSet schemaSet,XmlSchemaResource schemaResource,HashSet`1 SchemaSalReaded)
位于System.Data.Entity.Core.SchemaObjectModel.Schema.SomSchemaSetPer.ComputeSchemaSet(SchemaDataModelation数据模型)
位于System.Data.Entity.Core.Common.Utils.Memoizer`2.c_uuudisplayClass2.b_uuu0()
位于System.Data.Entity.Core.Common.Utils.Memoizer`2.Result.GetValue()处
at System.Data.Entity.Core.Common.Utils.Memoizer`2.Evaluate(TArg arg)
位于System.Data.Entity.Core.SchemaObjectModel.Schema.CreateXmlReaderSettings()处
位于System.Data.Entity.Core.SchemaObjectModel.Schema.Parse(XmlReader sourceReader,String sourceLocation)
位于System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate(IEnumerable`1 xmlReaders,IEnumerable`1 SourceFilePath,SchemaDataModel,AttributeValueNotification providerNotification,AttributeValueNotification providerManifestTokenNotification,ProviderManifestRequired ProviderManifestRequired,IList`1&schemaCollection)
位于System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate(IEnumerable`1 xmlReaders、IEnumerable`1 SourceFilePath、SchemaDataModel、DbProviderManifest providerManifest、IList`1和schemaCollection)
位于System.Data.Entity.Core.SchemaObjectModel.SchemaManager.LoadProviderManifest(XmlReader XmlReader,字符串位置,系统名称空间的布尔检查,模式和模式)
在System.Data.Entity.Core.Common.DbXmlEnabledProviderManifest.Load(XmlReader)中
位于System.Data.Entity.Core.Common.DbXmlEnabledProviderManifest..ctor(XmlReader)
位于System.Data.SQLite.EF6.SQLiteProviderManifest..ctor(字符串manifestoken)
位于System.Data.SQLite.EF6.SQLiteProviderServices.GetDbProviderManifest(字符串版本提示)
位于System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifest(字符串标记)
---内部异常堆栈跟踪的结束---
位于System.Data.Entity.Core.Common.DbProviderServices.GetProviderManifest(字符串标记)
位于System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInfo(DbConnection连接、DbProviderManifest和providerManifest)
位于System.Data.Entity.DbModelBuilder.Build(DbConnection providerConnection)
位于System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext)
位于System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput输入)
在System.Data.Entity.Internal.LazyInternalContext.InitializeContext()中
位于System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(类型entityType)
位于System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
位于System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
位于System.Data.Entity.Internal.Linq.InternalSet`1.Create()
在S