【问题标题】:Visual Studio crashes - Newtonsoft.json Bower errorVisual Studio 崩溃 - Newtonsoft.json Bower 错误
【发布时间】:2016-04-19 15:04:50
【问题描述】:

我正在使用 VS Community 2015,但是当我尝试使用 bower(包含 bower.json)打开项目时,VS 崩溃。事件日志错误和 bower.json 代码如下所示。当我重命名 bower.json 时,项目将打开并运行得很好。相同的 bower.json 文件在其他计算机上也可以正常工作。

我已经卸载并重新安装了 VS(包括所有更新)和 Bower。有什么建议可以让它不崩溃吗?谢谢!

事件查看器错误:

应用程序:devenv.exe 框架版本:v4.0.30319 描述: 由于未处理的异常,进程被终止。异常信息: Newtonsoft.Json.JsonReaderException 在 Newtonsoft.Json.JsonTextReader.ParseValue() 在 Newtonsoft.Json.JsonTextReader.ReadInternal() 在 Newtonsoft.Json.JsonTextReader.Read() 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(Newtonsoft.Json.JsonReader, Newtonsoft.Json.Serialization.JsonContract,布尔值)在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(Newtonsoft.Json.JsonReader, System.Type,布尔值)在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(Newtonsoft.Json.JsonReader, System.Type) 在 Newtonsoft.Json.JsonSerializer.Deserialize[System.__Canon, mscorlib, 版本=4.0.0.0,文化=中性, PublicKeyToken=b77a5c561934e089] 在 Microsoft.VisualStudio.Web.PackageManagement.Bower.BowerCommandService.ReadJsonResult[System.__Canon, mscorlib,版本=4.0.0.0,文化=中性, PublicKeyToken=b77a5c561934e089] 在 Microsoft.VisualStudio.Web.PackageManagement.Bower.BowerCommandService+c__DisplayClass32_0+d.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Threading.JoinableTask+d__76.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Threading.JoinableTask`1+d__3[[System.__Canon, mscorlib,版本=4.0.0.0,文化=中性, PublicKeyToken=b77a5c561934e089]].MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Web.PackageManagement.Bower.BowerCommandService+d__33.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Web.PackageManagement.Bower.BowerCommandService+d__34.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.Web.PackageManagement.PackageManagementEventsService+d__13.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.TaskRunnerExplorer.TaskRunnerManager+d__63.MoveNext() 在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 在 Microsoft.VisualStudio.TaskRunnerExplorer.TaskRunnerSolutionEventsManager+d__20.MoveNext() 在 System.Runtime.CompilerServices.AsyncMethodBuilderCore+c.b__6_0(System.Object) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate、System.Object、Int32、System.Delegate)在 System.Windows.Threading.DispatcherOperation.InvokeImpl() 在 System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) 在 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object,布尔值)在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object,布尔值)在 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback,System.Object)在 MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback,System.Object)在 System.Windows.Threading.DispatcherOperation.Invoke() 在 System.Windows.Threading.Dispatcher.ProcessQueue() 在 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr,Int32,IntPtr, MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate、System.Object、Int32、System.Delegate)在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

Bower.json

{
  "name": "ASP.NET",
  "private": true,
  "dependencies": {
    "angular-filters": "1.1.2",
    "angular-sanitize": "*"
  },
  "resolutions": {
    "angular": "~1.4.0"
  }
}

【问题讨论】:

    标签: json bower visual-studio-2015


    【解决方案1】:

    我的 VS2015 上也出现了这个错误,我发现了以下错误:

    来自 MS 的 John Montgomery 写了一篇带有 KB 链接的文章,在此处添加了 VS 更新 2 的其他修复:https://blogs.msdn.microsoft.com/visualstudio/2016/05/06/14-reasons-to-download-visual-studio-2015-update-2-today/

    我明天将在我的工作计算机上安装它,看看这是否解决了凉亭崩溃 VS 2015 的问题。手指交叉。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-06
      • 2017-02-21
      • 1970-01-01
      • 2013-03-16
      • 2015-09-10
      • 1970-01-01
      相关资源
      最近更新 更多