0
votes

I created a .net framework 4.0 with SignalR downloaded from Nuget. I think I downloaded Microsoft.AspNet.SignalR -Version 1.1.3 (based on instructions from SignalR support in .NET 4)

Then I copied the code from application http://blog.robseder.com/2013/10/18/executing-a-long-running-process-from-a-web-page/

When I execute it I am getting an error below

Error 10 '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?)

Anyone help me to fix this?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Owin;
using Owin;

namespace MvcApplication1.App_Start
{
    public static class Startup
    {
        public static void Configuration(IAppBuilder app)
        {
            app.MapSignalR();
        }
    }
}

enter image description here

I have these in my MVC project .net Framework 4.0

Microsoft.AspNet.SignalR.Core 1.2.2.0 Microsoft.AspNet.SignalR.Owin 1.2.2.0 Microsoft.AspNet.SignalR.SystemWeb 1.2.2.0 Microsoft.Owin 2.1.0.0 Microsoft.Owin.Host.SystemWeb 1.0.0.0

But I don't see Microsoft.AspNet.SignalR.dll!!

2
I don't think its a duplicate. Mine is .net Framework 4.0 and I am using SignalR 1.1.3CoolArchTek
@Pawel sorry! I got it wrong. I still receive the same error. add more details to main post.CoolArchTek
out of curiosity - why do you use 1.1.3 instead of the latest?Pawel

2 Answers

1
votes

It's probably late to answer this post. Might be helpful for someone else. Startup.cs doesn't support version 4.0 You will need a global.asax with following

using System.Web.Routing;
using Microsoft.AspNet.SignalR;

protected void Application_Start(object sender, EventArgs e)
{
  RouteTable.Routes.MapHubs();
}
0
votes

You can try this, I also ran into same issue and after updating Owin version all is working fine

Also @Pawel has suggested the same

Package manager console : Install-Package Microsoft.Owin -Version 2.1.0