Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
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 easy, 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.
If you are getting errors about SignalR not being set up correctly when starting the EPiServer user interface in the JavaScript console, you might need to 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>
<add key="owin:AutomaticAppStartup" value="false" />
<add key="owin:AutomaticAppStartup" value="false" />
to<add key="owin:appStartup" value="EPiServerContentCollaborationOWINStartup" />
Note that the OWIN startup need a class. To set up a startup class, see EPiServer and OWIN.
If the project previously did not have an Owin startup class and optimizeCompilations was enabled then sometimes the new code is never executed. This might result in various errors since the OWIN functionality is never 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 16, 2014