Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# UseWebpackDevMiddleware聚合异常_C#_Webpack_Asp.net Core Mvc - Fatal编程技术网

C# UseWebpackDevMiddleware聚合异常

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

我尝试使用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 $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);