OK this seems to be a question about differences between running via VS2012 (where it runs fine) vs. once deployed on my local win7 IIS 7.5 machine.
NB - Ultimately running through fiddler the call to /signalr/hubs is returning a 404
The error being reported in javascript is:
messageHub is undefined
where
var messageHub = $.connection.startHub;
and in my hub class
[HubName("startHub")]
public class ourHub : Hub
{
....
I'm calling MapHubs in App Start
protected void Application_Start(object sender, EventArgs e)
{
//Required for SignalR
RouteTable.Routes.MapHubs();
}
and I have the RAMFAR (runAllManagedModulesForAllRequests="true">) setting in web.config...
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
</modules>
The issue would seem to be around how I define the auto-generated signalr/hubs
It's an asp.net app (not mvc) so the troubleshooting page (https://github.com/SignalR/SignalR/wiki/Faq) seems to state
<script type="text/javascript" src='<%= ResolveClientUrl("~/signalr/hubs") %>'></script>
which neither works in debug through VS or when deployed
I've also tried
<script src="/signalr/hubs"></script> (also with the type declaration)
<script src="~/signalr/hubs"></script>
In other similar threads it has been mentioned to apply the hotfix http://support.microsoft.com/kb/980368 but the win7 downloads state they're not applicable to my computer...
NB SignalR version is 1.1.3.
I've also downloaded the StockTicker app which again works fine through VS, but upon deployment reports the same underlying issue, because $.connection.stockTickerMini is undefined
many thanks :)