为什么我收到此错误消息"遇到严重错误"在visual studio 2015 pro

时间:2017-05-17 18:16:37

标签: asp.net visual-studio visual-studio-2015

我在Visual Studio 2015专业版中收到此错误消息说"遇到严重错误"并需要重新启动visual studio。

错误说明

  

ms vs数据库项目遇到严重错误,必须退出。你想在退出之前尝试保存你的解决方案和任何打开的文档

日志

System.IO.FileNotFoundException
Could not load file or assembly 'Microsoft.SqlServer.Management.SqlParser, Version=13.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

   at Microsoft.Data.Tools.Schema.MetadataProvider.Features.OnlineMetadataCache..ctor()
   at Microsoft.Data.Tools.Schema.MetadataProvider.Features.OnlineMetadataCache.get_Instance()
   at Microsoft.VisualStudio.Data.Tools.Package.DesignerServices.OnlineProject.Dispose(Boolean disposing)
   at Microsoft.VisualStudio.Data.Tools.Package.DesignerServices.DatabaseChangesManager.TryDisposeModel(SqlDatabaseLocation database, Boolean forceCleanup)
   at Microsoft.VisualStudio.Data.Tools.Package.DesignerServices.DatabaseChangesManager.CleanupModels(Boolean forceCleanup)
   at Microsoft.VisualStudio.Data.Tools.Package.DesignerServices.DatabaseChangesManager.PollBufferChangesJob.Run()
   at Microsoft.Data.Tools.Schema.Utilities.Sql.Common.Threading2.JobManager.JobBase.<Microsoft.Data.Tools.Schema.Utilities.Sql.Common.Threading2.JobManager.IManageableJob.RunImpl>b__22_0(Object )
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at Microsoft.Data.Tools.Schema.Utilities.Sql.Common.Threading2.JobManager.JobBase.Microsoft.Data.Tools.Schema.Utilities.Sql.Common.Threading2.JobManager.IManageableJob.RunImpl(Object dummyArg)
   at Microsoft.Data.Tools.Schema.Utilities.Sql.Common.Threading2.JobManager.RunCurrentThread(IManageableJob imj)
   at Microsoft.Data.Tools.Schema.Utilities.Sql.Common.Threading2.JobManager.RunIdleCooperatively()
   at Microsoft.VisualStudio.Data.Tools.Package.IdleProcessingComponent.FDoIdle(UInt32 grfidlef)

1 个答案:

答案 0 :(得分:0)

我收到了同样的错误(在Azure SQL V12数据库上工作)。在调查时,我发现这是因为我使用了“cross apply string_split(”功能。(在数据库中工作正常) 看起来Visual Studio 2015中的解析器真的不喜欢这个....同样适用于其他一些新功能......

更新20170606:我将DAXFX和SSDT更新到最新版本(17.1和14.0.61705.170),现在它可以正常运行。 请参阅microsoft connect上的this

此致 杰拉德