Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
ASP.NET SignalR is a library for developing real-time web functionality, allowing for bi-directional communication between server and client. SignalR is used by some of the Episerver add-ons, such as Live Monitor and Content Collaboration.
Note: If you get errors about SignalR not being set up correctly when you start the Episerver user interface in the JavaScript console, clear the .NET temporary files.
Configure SignalR as follows:
Install-Package Microsoft.AspNet.SignalR -Version 2.0.3
<configuration>
...
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
...
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.999.999" newVersion="2.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.999.999" newVersion="2.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.3.0" newVersion="2.0.3.0" />
</dependentAssembly>
</assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
</runtime>
...
</configuration>
The newVersion is the real version value of running assemblies on the website. For example, 2.0.1.0 for Microsoft.Owin, 2.0.3.0 for Microsoft.AspNet. SignalR.Core might not be running on your website.
<add key="owin:AutomaticAppStartup" value="false" />
<add key="owin:AutomaticAppStartup" value="false" />
to
<add key="owin:appStartup" value="EPiServerContentCollaborationOWINStartup" />
This example shows configuration for Content Collaboration. For LiveMonitor, the startup value is EPiServerLiveMonitorOWINStartup.
Note: The OWIN startup needs a class. To set up a start-up class, see Episerver and OWIN.
If your project previously did not have an OWIN startup class, and optimizeCompilations was enabled, then sometimes the new code is not executed, which may result in errors because the OWIN functionality is not set up. To work around this, temporarily set optimizeCompilations in web.config to false to clear the cache, start the site, and then you can set optimizeCompilations to true again.
Last updated: Sep 21, 2015