'Owin.IAppBuilder' does not contain a definition for 'MapSignalR'

Bhavik picture Bhavik · Apr 14, 2014 · Viewed 56.4k times · Source

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

Answer

mggSoft picture mggSoft · Dec 23, 2014

Only install this nuget:

Install-Package Microsoft.AspNet.WebApi.OwinSelfHost