gpt4 book ai didi

asp.net - 在 Ubuntu 上更新到 mono 4.0.1 后出现问题

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:03 24 4
gpt4 key购买 nike

我刚刚在我的 ubuntu 机器上升级到 刚刚发布 Mono 版本 4.0.1。之前安装的 mono 版本是 3.2.7(如果我没记错的话)。

现在的问题:

我的第一个问题是关于 SignalR 和自托管。我有一个 .NET 4.5.1 控制台应用程序,我在其中使用 OWIN 自托管 NancyFx、Web Api 和 SignalR。在 mono 3.2.7 上运行时,据我所知没有问题,但是当我尝试在 mono 4.0.1 上启动应用程序时,我得到以下堆栈跟踪:

Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidProgramException: Invalid IL code in (wrapper delegate-invoke) <Module>:invoke_callvirt_CancellationTokenRegistration_CancellationToken&_Action`1<object>_object (System.Threading.CancellationToken&,System.Action`1<object>,object): IL_0057: castclass 0x00000007

at Microsoft.AspNet.SignalR.Infrastructure.CancellationTokenExtensions.SafeRegister (CancellationToken cancellationToken, System.Action`1 callback, System.Object state) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeResolverDispose (IDependencyResolver resolver, CancellationToken hostShutdownToken) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeHost (IDependencyResolver resolver, System.String instanceName, CancellationToken hostShutdownToken) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.UseSignalRMiddleware[HubDispatcherMiddleware] (IAppBuilder builder, System.Object[] args) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.RunSignalR (IAppBuilder builder, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions+<>c__DisplayClass1.<MapSignalR>b__0 (IAppBuilder subApp) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, PathString pathMatch, System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, System.String pathMatch, System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.MapSignalR (IAppBuilder builder, System.String path, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.MapSignalR (IAppBuilder builder, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.MapSignalR (IAppBuilder builder) [0x00000] in <filename unknown>:0

我不知道这个错误可能意味着什么,非常感谢所有帮助。我使用的是 Microsoft ASP.NET SignalR Self Host 包版本 2.2.0。

附带说明一下,我已经在新的单声道版本上编译了所有程序集。

亲切的问候,西蒙

最佳答案

这是最近修复的 Mono 问题:https://bugzilla.xamarin.com/show_bug.cgi?id=29665

关于asp.net - 在 Ubuntu 上更新到 mono 4.0.1 后出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29992634/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com