C# – ‘Owin.IAppBuilder’ does not contain a definition for ‘MapSignalR’

asp.netcowinsignalr

Error

'Owin.IAppBuilder' does not contain a definition for 'MapSignalR' and no extension method 'MapSignalR' accepting a first argument of type 'Owin.IAppBuilder' could be found (are you missing a using directive or an assembly reference?)

Code

using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(SignalRChat.Startup))]
namespace SignalRChat
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            // Any connection or hub wire up and configuration should go here
            app.MapSignalR();
        }
    }
}  

Any help would be greatly appreciated…

Update

signalR version 2.0.3
Microsoft Owin version 2.0.2
Owin version 1.0.0
Visual Studio 2012

Best Answer

Only install this nuget:

Install-Package Microsoft.AspNet.WebApi.OwinSelfHost

Related Topic