SignalR no puede leer la propiedad cliente de undefined

Estoy intentando agregar SignalR a mi proyecto (ASPNET MVC 4). Pero no puedo hacer que funcione.

En la imagen de abajo puedes ver el error que estoy recibiendo. He leído un montón de publicaciones de stackoverflow pero ninguna de ellas está resolviendo mi problema.

Esto es lo que hice hasta ahora:

1) Ran Install-Package Microsoft.AspNet.SignalR -Pre
2) Added RouteTable.Routes.MapHubs(); in Global.asax.cs Application_Start()
3) If I go to http://localhost:9096/Gdp.IServer.Web/signalr/hubs I can see the file content
4) Added <modules runAllManagedModulesForAllRequests="true"/> to Web.Config
5) Created folder Hubs in the root of the MVC application
6) Moved jquery and signalR scripts to /Scripts/lib folder (I'm not using jquery 1.6.4, I'm using the latest)

Este es mi Index.cshtml

<h2>List of Messages</h2>

<div class="container">
    <input type="text" id="message" />
    <input type="button" id="sendmessage" value="Send" />
    <input type="hidden" id="displayname" />
    <ul id="discussion">
    </ul>
</div>

@section pageScripts
{
    <!--Reference the SignalR library. -->
    <script src="@Url.Content("~/Scripts/jquery.signalR-1.0.0-rc1.min.js")" type="text/javascript"></script>
    <!--Reference the autogenerated SignalR hub script. -->
    <script type="text/javascript" src="~/signalr/hubs"></script>
    <script src="@Url.Content("~/Scripts/map.js")" type="text/javascript"></script>
}

Este es mi archivo IServerHub.cs (ubicado dentro de la carpeta Hubs)

namespace Gdp.IServer.Ui.Web.Hubs
{
    using Microsoft.AspNet.SignalR.Hubs;
    [HubName("iServerHub")]
    public class IServerHub : Hub
    {
        public void Send(string name, string message)
        {
            Clients.All.broadcastMessage(name, message);
        }
    }
}

Y esto es map.js

$(function () {

    // Declare a proxy to reference the hub. 
    var clientServerHub = $.connection.iServerHub;

    // Create a function that the hub can call to broadcast messages.
    clientServerHub.client.broadcastMessage = function (name, message) {
        $('#discussion').append('<li><strong>' + name + '</strong>:&nbsp;&nbsp;' + message + '</li>');
    };

    // Get the user name and store it to prepend to messages.
    $('#displayname').val(prompt('Enter your name:', ''));

    // Set initial focus to message input box.  
    $('#message').focus();

    // Start the connection.
    $.connection.hub.start().done(function () {
        $('#sendmessage').click(function () {
            // Html encode display name and message. 
            var encodedName = $('<div />').text($('#displayname').val()).html();
            var encodedMsg = $('<div />').text($('#message').val()).html();

            // Call the Send method on the hub. 
            clientServerHub.server.send(encodedName, encodedMsg);

            // Clear text box and reset focus for next comment. 
            $('#message').val('').focus();
        });
    });
});

Los DLL que veo referencias para SignalR son:

Microsoft.AspNet.SignalR.CoreMicrosoft.AspNet.SignalR.OwinMicrosoft.AspNet.SignalR.SystemWeb

¿Alguna idea de cómo hacer que funcione? ¿Debo hacer algún cambio porque los scripts están en la carpeta / Script / lib?

NOTA Estoy siguiendo las instrucciones encontradasaquí sobre cómo configurar el Castillo de Windsor para que funcione con SignalR, y nuevamente, parece que el proxy no se puede crear y recibo el mismo error:

Cannot read property client of undefined

lo que significa que el proxy al hub no fue creado

Así es como lo tengo en el servidor.

public class IncidentServerHub : Hub

Y asi en el cliente.

var clientServerHub = $.connection.incidentServerHub;

De nuevo, puedo ver el archivo creado dinámicamente aquí:

/GdpSoftware.Server.Web/signalr/hubs

Entonces, ¿por qué no se crea el proxy?

¡¡¡Gracias por adelantado!!! Guillermo.

Respuestas a la pregunta(7)

Su respuesta a la pregunta