Q:

SignalR chat not working when configured in IIS7 - windows 7

I have created simple chat application using SignalR, Visual studio 2013 (but application is in 2012), framework 4.5. 
I use ASP.NET webforms only (Not MVC)
Its working when I run via visual studio. 
But when I configured it in IIS, it's giving the following error in page console -
GET http://localhost/chat/signalr/hubs 404 (Not Found) localhost/:30
Uncaught TypeError: Cannot read property 'client' of undefined localhost/chat/:112

'chat' is name of virtual directory. 
Added foll.  as well in web.config -
<system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
  <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

code from Global.asax.cs-
protected void Application_Start(object sender, EventArgs e)
    {
        // Register the default hubs route: ~/signalr/hubs
        RouteTable. Routes. MapHubs();
    }

Code from Index. Html -
<! --Reference the SignalR library. -- >
<script src="Scripts/jquery.signalR-1.0.0.js"></script>

<! --Reference the autogenerated SignalR hub script. -- >
<script src="signalr/hubs"></script>

I have tried this as well, but not successful -
<script src="<%= ResolveUrl("~/signalr/hubs") %>" type="text/javascript"></script>

NOTE - I am refering this http://www.codeproject.com/Articles/562023/Asp-Net-SignalR-Chat-Room
Thanks in advance. 

A:

If you run it in Visual Studio you probably use IIS Express in version 8.  SignalR uses web sockets which are not fully supported on IIS 7.x, therefore you have to use either Windows 8 or Server 2012.  Of course you can use IIS Express 8 during development.