Unable to login to Umbraco backoffice Signalr owin hub.

Many websites now use SignalR to update content on webpages in real-time. When using Umbraco there is a gotcha that you need to be aware of so that you do not lock yourself out of the back-office.

By default, in the web.config file you will have the following setting in the appSettings.

<add key="owin:appStartup" value="UmbracoDefaultOwinStartup" />

The above is Umbraco's default setting for SignalR, you need to change the appSetting to your new name and also add the following code in your StartUp.cs class.

The full code is below. 

<add key="owin:appStartup" value="SiteStartUp" />

using Microsoft.Owin;
using Owin;
using Umbraco.Web;

[assembly: OwinStartup("SiteStartUp", typeof(Web.UI.Startup))]

namespace Web.UI
    public class Startup : UmbracoDefaultOwinStartup
        public override void Configuration(IAppBuilder app)

Notice how I have set the friendly name to match that of what was added in the appSetting section in the web.config and how the Startup class inherits from UmbracoDefaultOwinStartup.

I also override the Configuration and with the setting above you can now use your own SignalR hub and also login to the backoffice.