简体   繁体   English

升级到.NET 4.6.1后缺少SignalR UseServiceBus定义

[英]SignalR UseServiceBus deinition missing after upgrading to .NET 4.6.1

I have had to update a project from .NET 4.0 to 4.6.1 for irrelevant reasons. 出于不相关的原因,我不得不将项目从.NET 4.0更新到4.6.1。

After the upgrade, a number of nuget packages had to be reinstalled due to having been installed under the old framework prior. 升级后,由于先前已在旧框架下安装,因此必须重新安装许多nuget软件包。

All is well aside from the compiler not liking my old SignalR configuration: 除了编译器不喜欢我的旧SignalR配置外,其他一切都很好:

GlobalHost.DependencyResolver.UseServiceBus(connString, "notifications");

UseServiceBus() is undefined. UseServiceBus()未定义。

Edit: 编辑:

I forgot that the compiler no longer finds this cache property: WebAPI.OutputCache.Cache.MemoryCacheDefault() - Cache is undefined. 我忘记了编译器不再找到此缓存属性:WebAPI.OutputCache.Cache.MemoryCacheDefault()-缓存未定义。

var cacheConfig = new global::WebAPI.OutputCache.CacheOutputConfiguration(GlobalConfiguration.Configuration);
        cacheConfig.RegisterCacheOutputProvider(() => new global::WebAPI.OutputCache.Cache.MemoryCacheDefault());

One thing to mention is that previously I was running SignalR v1.1.2, but nuget no longer has this version so I opted for 1.1.4. 要提及的一件事是,我以前运行的是SignalR v1.1.2,但是nuget不再具有此版本,因此我选择了1.1.4。

Any ideas? 有任何想法吗? The MSDN documentation, while old, still instructs to use this method, so I'm not sure. MSDN文档虽然很旧,但仍指示使用此方法,因此我不确定。

Thanks! 谢谢!

Well, sometimes you just have to admit it when you make a rookie mistake, and this is one of those times. 好吧,有时候,当您犯了一个菜鸟错误时,您只需要承认这一点,这就是其中一次。

I was missing the SignalR.ServiceBus dll. 我缺少SignalR.ServiceBus dll。

I removed it to reinstall it and forgot because it's not included in the main package for SignalR. 我删除了它以重新安装它并忘记了,因为SignalR的主包装中没有包含它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将项目从.NET 3.5升级到.NET 4.6.1后出现svcutil错误 - svcutil error after upgrading projects from .NET 3.5 to .NET 4.6.1 在 .NET 4.6.1 上使用 SignalR Core - Using SignalR Core on .NET 4.6.1 将Visual Studio 2017中的.NET Framework从4.0升级到4.6.1后,C#API项目中发生错误 - ERROR in C# API project after upgrading .NET framework from 4.0 to 4.6.1 in Visual Studio 2017 从 .net 4.0 升级到 4.6.1 后 WiX 工具集构建失败:无法加载 MSBuild 包装器? - WiX toolset build fails after upgrading from .net 4.0 to 4.6.1: Cannot load MSBuild wrapper? 从 .Net 4.6.1 升级到 .Net 4.8 后使用 System.IO.Compression 的问题 - Problems using System.IO.Compression after upgrading from .Net 4.6.1 to .Net 4.8 MacOS/VisualStudioCode/Omnisharp 缺少 .NET Framework 4.6.1 - MacOS/VisualStudioCode/Omnisharp missing .NET Framework 4.6.1 使SignalR与在点网框架4.6.1中运行的Angular 5配合使用 - Getting SignalR working with Angular 5 running in dot net framework 4.6.1 将 .NET Framework 4.6.1 更新到 4.8 后出错 - Error after updating .NET Framework 4.6.1 to 4.8 将Visual Studio升级到15.5后缺少System.Net.Http - Missing System.Net.Http after upgrading Visual Studio to 15.5 升级SignalR - Upgrading SignalR
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM