Owin.IAppBuilder does not contain definition of "MapSignalR" error in asp.net
I am getting this error
Owin.IAppBuilder 'does not contain a definition for "MapSignalR" and no extension method' MapSignalR 'accepting a first argument of type "Owin.IAppBuilder" can be found (are you missing a using directive or an assembly reference?)
This is my code
using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(VirtualClassroom.Startup1))]
namespace VirtualClassroom
{
public class Startup1
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
} I searched a lot and tried according to Stack Overflow 'Owin.IAppBuilder' does not contain a definition for "MapSignalR" I had
1.Added Microsoft.Owin // version 2.0.1
2.Added Microsoft.Owin.Security//version 2.0.1
3.Added Microsoft Asp.Net SignalR
But still I am getting the same error. Please help. Thanks in advance!
source to share
It looks like you have an old version Microsoft.AspNet.SignalR.Core.dll
, go to nuGet and install this package and you will see this extension method ...
Then you should see a bunch of these methods public static IAppBuilder MapSignalR(this IAppBuilder builder);
underneath OwinExtensions
.
EDIT : based on comment
Go to links and click properties of this help ...
version should be similar to the one below ...
source to share