误差在ARM处理器上运行ASP.Net Web应用程序(覆盆子裨3 B)/ Ubuntu的(天然无单

2019-09-28 02:53发布

我跟着引导波纹管运行一个简单的C#在我的Ubuntu箱控制台程序,一切顺利。 (我试图使用本地运行一切.Net Core没有任何使用Mono !)

该指南: https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md

但是,当我做了同样的,试图运行的ASP.Net web application (由Visual Studio生成的非常基本的和简单的模板),我得到这个错误:

root@dotnet:/dotnet/aspnetcore/PublishOutput# /dotnet/dotnet WebApplication1.dll

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.ComponentModel.Primitives, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at Microsoft.Extensions.FileProviders.PhysicalFileProvider.CreateFileWatcher(String root)
   at Microsoft.AspNetCore.Hosting.Internal.HostingEnvironmentExtensions.Initialize(IHostingEnvironment hostingEnvironment, String applicationName, String contentRootPath, WebHostOptions options)
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildHostingServices()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at WebApplication1.Program.Main(String[] args)
Aborted (core dumped)

能有人帮我解决这一点,的RPi3 本地运行ASP.Net应用程序

PS我不认为这是很重要的,但我在工作的Docker容器。

Answer 1:

有人在GitHub上找到了解决办法! 非常感谢他。 其实这是一种变通方法,直到我们可以直接建立在ARM应用程序或找到另一个真正的解决方案,但这种解决方法现在工作非常好!

https://github.com/dotnet/coreclr/issues/9168#issuecomment-277846829



文章来源: Error in running ASP.Net Web App on ARM processor (Raspberry Pi 3 B) / Ubuntu (Natively without Mono)