C# UseWebpackDevMiddleware聚合异常
我尝试使用NPM/Webpack/Vue.js创建一个ASP.NET核心MVC应用程序。我将学习本教程: 启动项目时,我遇到以下异常:C# UseWebpackDevMiddleware聚合异常,c#,webpack,asp.net-core-mvc,C#,Webpack,Asp.net Core Mvc,我尝试使用NPM/Webpack/Vue.js创建一个ASP.NET核心MVC应用程序。我将学习本教程: 启动项目时,我遇到以下异常: An exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll but was not handled in user code: 'One or more errors occurred.' Inner exceptions found, see
An exception of type 'System.AggregateException' occurred in System.Private.CoreLib.dll but was not handled in user code: 'One or more errors occurred.'
Inner exceptions found, see $exception in variables window for more details.
Innermost exception Newtonsoft.Json.JsonReaderException : Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
好像某个JSON文件的格式不正确?!但是哪一个呢。我是新的NPM和网页包的东西
如果您需要更多信息,请告诉我。发现此dotnet问题:
我在一个代理后面,需要先停用它(我不能),或者在Program.cs的Main()方法中添加这一行,然后再执行其他操作:
AppContext.SetSwitch("System.Net.Http.UseSocketsHttpHandler", false);
AppContext.SetSwitch("System.Net.Http.UseSocketsHttpHandler", false);