Last post Jan 12, 2014 12:54 AM by aarsh
Jan 05, 2014 01:58 PM|aarsh|LINK
I have a very simple and straight forward chat application that I wanted to test. ( Source Code availalble at
My problem is, I created the project and it runs as expected. I had been using Visual Studio Development Server ( by default ) at that time.
I changed it to use IIS and it broke ( FYI : I am running VS w Admin Privilages and Virtual Directory did get created successfully on IIS )
To my surprise, if I change it to IIS Express 7.5, it worked !
OS : W7 Pro | .NET f/w --> 4.0 | Website : ASP.NET | Visual Studio 2010 SP1 (10.0.40219.1 SP1Rel)
Jan 05, 2014 02:34 PM|damienBod|LINK
It looks like the signalR scripts are not available. Check the signalR js scripts path and see if you can browse to the scripts.
Jan 06, 2014 02:55 PM|aarsh|LINK
Thanks for your reply, I checked this first thing before starting the thread, the scripts are present. The code works as exptected on Visual Studio Development Server as well as IIS 7.5 Express. It's IIS that does something unpredictable.
Also I am running VS with elevated Admin Privilages.
My web page is in the root directory of the (test) project, and its file name reads "Chat'html" and has set as start page.
with IIS Express : http://localhost:50534/Chat.html
with VS Deployment Server : http://localhost:50561/Chat.html
Now I go and set to IIS, also clicked on create virtual directory and it got created successfully.
and now the url is
http://localhost/ASPNET4SignalRChatTest/Chat.html/ (yes, server lists it as a dir) and thorws HTTP Error 403.14 - Forbidden err.
I can only access the actual page if I use :
http://localhost/ASPNET4SignalRChatTest/Chat.html/signalr/hubs is present
var chat = $.connection.chatHub;
$.connection is not null, but $.connection.chatHub is undefined.
Jan 10, 2014 04:10 AM|damienBod|LINK
Is everything on the IIS installed, for example webSockets need to be activated in the features, IIS .NET features. Also older versions of Windows required a patch for webSockets, is .NET 4.5.1 installed on the IIS, does your application pool uses 4.0 and
not .NET 2.0.
Jan 12, 2014 12:54 AM|aarsh|LINK
.NET 4.5 ? The application is built on 4.0 itself.
For my local dev box, I am on IIS 7.5.7600.16385 with Win 7 Pro
I've tried on two different servers
So how do I enable that web socket ?