Posted on 04/10/2014 12:07:37
You don't need to change the Application_OnPreRequestHandlerExecute in order to make this work.
The sample application contains a notfication subscriber called "RouteHandler" which subscribes to the notification Standard.Application.AuthenticateRequest. Inside this it disables DWs URL handling by setting a property Handled = true on the event args.
I had forgotten all about this notification... it's very useful in cases like this :)
Anyway, I managed to get the sample app up and running, by doing this:
1) Upgrade to SignalR 2.1.0 (make sure you use the exact same versions of all dependencies that your target DW version uses).
2) Add this to web.config, appSettings:
<add key="owin:appStartup" value="Dynamicweb.Chat.Backend.Startup, Dynamicweb.Chat.Backend" />
3) Add this to web.config, runtime > assemblyBinding:
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
</dependentAssembly>