Error
The type or namespace name 'OwinStartupAttribute' could not be found
The type or namespace name 'OwinStartup' could not be found
Code
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(Employee.Web.Models.Startup))]
namespace Employee.Web.Models.Startup
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}
}
Any help would be appreciated.
Using:
- .net 4.0
- MVC 4
- Microsoft.AspNet.SignalR.SystemWeb (1.1.0.0)
- Microsoft.Owin (2.1.0.0)
- Microsoft.Owin.Host.SystemWeb (2.1.0.0)
- Owin (1.0.0.0)
- Visual Studio 2013
Installed singlar after Referencing Microsoft.Owin using the command Install-Package Microsoft.AspNet.SignalR -Version 1.1.3
UPDATE:
I removed [assembly:..
and also added this in web.config:
<add key="owin:AppStartup" value="Employee.Web.Models.Startup" />
The error now says
'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