title: DNN 8 (DotNetNuke) How to configure SignalR?
body: <p>For one of my projects I have to use DNN. 
  I created a regular ASP.NET project in which I experimented with SignalR and it works perfect.</p>
  
  <p>But within DNN version 8, after installing the SignalR NuGet packages both Core and for JS and creating the startup class such as this:</p>
  
  <pre><code>public class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              app.MapSignalR();
          }
      }
  </code></pre>
  
  <p>A testhub class such as this:</p>
  
  <pre><code>public class MyTestHub : Hub
      {
          public void Hello(string message)
          {
              //Clients.All.hello();
  
              // set all clients
              var clients = Clients.All;
  
              // call javascript function
              clients.test("This is a test");
  
              Trace.WriteLine(message);
          }
      }
  </code></pre>
  
  <p>and finally an index page:</p>
  
  <pre><code>@{
      Layout = null;
  }
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;Index&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          DNN 8 SignalR TestPage
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  
      &lt;script src="~/DesktopModules/MVC/AC_ChatTest1/Scripts/jquery.signalR-2.4.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/signalr/hubs"&gt;&lt;/script&gt;
  
      &lt;script&gt;
  
          $(function () {
  
              console.log('in on ready');
  
              // set up the hub connection
              var hub = $.connection.mytest;
  
              console.log(hub);
  
              // define JS function that is called from
              hub.client.test = function (msg) {
                  console.log(msg);
              }
  
              $.connection.hub
                  .start()
                  .done(function () {
                      hub.server.hello("SignalR is working.");
                  })
  
          });
  
      &lt;/script&gt;
  </code></pre>
  
  <p>I get this error:</p>
  
  <p><a href="https://i.stack.imgur.com/24rt2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/24rt2.png" alt="enter image description here"></a></p>