StructureMap.Microsoft.DependencyInjection icon indicating copy to clipboard operation
StructureMap.Microsoft.DependencyInjection copied to clipboard

未能加载文件或程序集“System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Open ghd258 opened this issue 8 years ago • 3 comments
trafficstars

未能加载文件或程序集“System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040) 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.FileLoadException: 未能加载文件或程序集“System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)

ghd258 avatar Nov 16 '17 08:11 ghd258

Translation (courtesy of Google Translate):

Failed to load file or assembly "System.Net.Http, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" or one of its dependencies. The assembly list definition found does not match the assembly reference. (Exception from HRESULT: 0x80131040) Explanation: An unhandled exception occurred during the execution of the current web request. Please check the stack trace information for more information on the error and the source of the error in the code.

Exception Details: System.IO.FileLoadException: Failed to load file or assembly "System.Net.Http, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" or one of its dependencies. The assembly list definition found does not match the assembly reference. (Exception from HRESULT: 0x80131040)

khellang avatar Nov 16 '17 09:11 khellang

I'm not sure how this is related to StructureMap.Microsoft.DependencyInjection? 🤔

khellang avatar Nov 16 '17 09:11 khellang

@khellang I'd say close as dup of https://github.com/aspnet/Home/issues/2279. They opened the same bug in ~7 places.

Eilon avatar Nov 27 '17 19:11 Eilon