Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.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# 英特尔伽利略.NET支持_C#_.net_Intel Galileo_Windowsondevices - Fatal编程技术网

C# 英特尔伽利略.NET支持

C# 英特尔伽利略.NET支持,c#,.net,intel-galileo,windowsondevices,C#,.net,Intel Galileo,Windowsondevices,尝试在Intel Galileo Gen 1主板上运行.NET OWIN自托管应用程序时,出现以下异常: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method not found: 'Boolean System

尝试在Intel Galileo Gen 1主板上运行.NET OWIN自托管应用程序时,出现以下异常:

 Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. ---> System.MissingMethodException:
Method not found: 'Boolean System.Type.op_Equality(System.Type, System.Type)'.
   at Microsoft.Owin.Hosting.Services.ActivatorUtilities.CreateFactory(Type type
)
   at Microsoft.Owin.Hosting.Services.ServiceProvider.Add(Type serviceType, Type
 implementationType)
   at Microsoft.Owin.Hosting.Services.ServicesFactory.<>c__DisplayClass1.<Create
>b__0(Type service, Type implementation)
   at Microsoft.Owin.Hosting.Services.ServicesFactory.<>c__DisplayClass4.<DoCall
back>b__3(Type service, Type implementation)
   at Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback(Action`2 callba
ck)
   at Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback(IDictionary`2 s
ettings, Action`2 callback)
   at Microsoft.Owin.Hosting.Services.ServicesFactory.Create(IDictionary`2 setti
ngs, Action`1 configuration)
   at Microsoft.Owin.Hosting.Services.ServicesFactory.Create(IDictionary`2 setti
ngs)
   at Microsoft.Owin.Hosting.WebApp.BuildServices(StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.Start(StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.Start[TStartup](StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.Start[TStartup](String url)
   at Osborn.Galileo.OwinHost.Program.Main(String[] args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments,
 Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Objec
t[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke
Attr, Binder binder, Object[] parameters, CultureInfo culture)
   at AppDomainManager.HostMain(Int32 argc, Char** argv, Char* assemblyToRun, In
t32 flags)
未处理的异常:System.Reflection.TargetInvocationException:异常已发生
已被调用的目标抛出。-->System.MissingMethodException:
找不到方法:“Boolean System.Type.op_Equality(System.Type,System.Type)”。
位于Microsoft.Owin.Hosting.Services.ActivatorUtilities.CreateFactory(类型
)
在Microsoft.Owin.Hosting.Services.ServiceProvider.Add(输入serviceType,输入
实施类型)
在Microsoft.Owin.Hosting.Services.ServicesFactory.c\u DisplayClass1.b\u 0(类型服务,类型实现)
在Microsoft.Owin.Hosting.Services.ServicesFactory.c__DisplayClass4.b__3(类型服务,类型实现)
在Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback(Action`2 callba
(ck)
位于Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback(IDictionary`2 s
ettings,动作'2(回调)
在Microsoft.Owin.Hosting.Services.ServicesFactory.Create(IDictionary`2 setti
ngs,行动1(配置)
在Microsoft.Owin.Hosting.Services.ServicesFactory.Create(IDictionary`2 setti
(荷兰)
位于Microsoft.Owin.Hosting.WebApp.BuildServices(StartOptions)
在Microsoft.Owin.Hosting.WebApp.Start(StartOptions)上
在Microsoft.Owin.Hosting.WebApp.Start[TStartup](开始选项)上
位于Microsoft.Owin.Hosting.WebApp.Start[TStartup](字符串url)
位于Osborn.Galileo.OwinHost.Program.Main(字符串[]args)
---内部异常堆栈跟踪的结束---
在System.RuntimeMethodHandle.InvokeMethod(对象目标,对象[]参数,
签名sig,布尔构造函数)
在System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(对象obj,对象JEC
t[]参数,对象[]参数)
在System.Reflection.RuntimeMethodInfo.Invoke(对象obj,BindingFlags Invoke
属性、绑定器绑定器、对象[]参数、CultureInfo区域性)
在AppDomainManager.HostMain(Int32 argc,Char**argv,Char*assemblyToRun,In
(t32旗)
我的问题分为两部分:

  • 英特尔伽利略版本的Windows是否支持.NET
  • 如果是,是什么版本,它是完整的框架还是仅仅是客户端配置文件

  • 是的,伽利略最终应该支持.NET。现在还不完全是这样。 查看
    我怀疑伽利略是否会运行.NET框架。它缺少.NET所依赖的现代指令集。其他人提到的FAQ只是提到了“通用应用程序模型”,这可能仅仅意味着“WRET”是一个C++的东西(但是如果你有.NET可用的话,它很容易从.NET中消耗品)。但我并不是说我们不会在某些设备上看到.NET

    说到这里,您可以使用Jer的Mono端口在galileo上运行.NET应用程序:


    虽然速度不是很快,但它在大多数情况下都能正常工作。

    值得一提的是,.Net核心运行时的大小大约为11MB,所有项目都可以作为独立的allone应用程序与运行不同依赖项的其他.Net项目并排运行

    完整的.net堆栈(大约200MB)不适用于物联网,从来都不是。在网上查找ASP.NETVNEXT,了解近期的情况