I've been struggling to get even simple demos to work with rc2, it seems with all the demos including the nuget demo the "/signalr/hubs" file is not served up to the client browser.
However, if I switch the project to use the VS2012 development server then it works fine.
FYI, I'm running on a Win8 64bit box with VS2012 Update 1. SignalR is 1.0.0.rc2.
It's likely something missing in the configuration if you can't get it working on IIS Express. Let me know where I can see the sample solution so I can take a look.
It seems the browser's request for the hubs file is never filled when running under IIS Express, but like I stated earlier when switched to the VS dev server it works as expected.
I was working with VS 2012 and IIS express and hubs were working good. When I installed VS 2012 update 1 web app waits forever and the only solution right now is to switch to VS web server.
Same problem as I had maybe? For me it was the IIS Express that didn't stop when I stopped debugging. Next time I ran the application it seemed like the process just continued and my startup code was never run.
I checked "Enable Edit and Continue" under Properties/Web for the project and now it works. But the question remains, why did it start to happen all of a sudden? My project was working fine a while a go, feels like an update "fixed" something that is disturbing
the IIS Express.
"When all you have is a hammer, every problem looks like a nail"
It seems the issue is related to internal calls to System.Diagnostics.PerformanceCounterCategory.Exists().
Anyways what worked in the end for me was uninstalling IIS Express 8, deleting the IIS Express directories from "C:\Program Files" and "C:\Program Files (x86)", deleting the folder "IIS Express" under "C:\Users\{Your Name}\My Documents", then reinstalling
IIS Express 8 using the Web platform installer.
I don't know what in my previous settings was causing this, but this fixed it for me.
kshaban
0 Points
5 Posts
/signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 02, 2013 04:50 PM|LINK
Hi,
I've been struggling to get even simple demos to work with rc2, it seems with all the demos including the nuget demo the "/signalr/hubs" file is not served up to the client browser.
However, if I switch the project to use the VS2012 development server then it works fine.
FYI, I'm running on a Win8 64bit box with VS2012 Update 1. SignalR is 1.0.0.rc2.
Thanks
davidfowl
Contributor
2764 Points
623 Posts
Microsoft
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 02, 2013 05:08 PM|LINK
We don't support/test the VS development server. We recommend using IIS express for development.
Senior SDE, ASP.NET Team, Microsoft
kshaban
0 Points
5 Posts
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 02, 2013 05:24 PM|LINK
The problem is with IIS Express.
However, when I switch to the VS development server the "/signalr/hubs" file gets served.
I also prefer to use IIS Express for all development purposes.
I would be happy to send the solution which is causing the issue.
FYI, I've tried it on two seperate systems with similar results.
Thanks again
davidfowl
Contributor
2764 Points
623 Posts
Microsoft
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 02, 2013 09:14 PM|LINK
It's likely something missing in the configuration if you can't get it working on IIS Express. Let me know where I can see the sample solution so I can take a look.
Senior SDE, ASP.NET Team, Microsoft
kshaban
0 Points
5 Posts
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 03, 2013 01:14 PM|LINK
I appreciate your time, the solution is at https://dl.dropbox.com/u/74084188/SimpleChat.zip.
It seems the browser's request for the hubs file is never filled when running under IIS Express, but like I stated earlier when switched to the VS dev server it works as expected.
Thanks again
davidfowl
Contributor
2764 Points
623 Posts
Microsoft
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 04, 2013 05:27 PM|LINK
I just tried the app without any modifications and it's running great on IIS Express.
Senior SDE, ASP.NET Team, Microsoft
malekpour
Member
2 Points
1 Post
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 14, 2013 03:30 PM|LINK
I was working with VS 2012 and IIS express and hubs were working good. When I installed VS 2012 update 1 web app waits forever and the only solution right now is to switch to VS web server.
kshaban
0 Points
5 Posts
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 14, 2013 04:42 PM|LINK
This is my exact situation as well, I have update 1 installed and I keep getting the same exception regarding OWIN when the hubs are initalizing.
Oneleg
Member
5 Points
13 Posts
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 18, 2013 11:39 AM|LINK
Same problem as I had maybe? For me it was the IIS Express that didn't stop when I stopped debugging. Next time I ran the application it seemed like the process just continued and my startup code was never run.
http://stackoverflow.com/questions/12590963/can-visual-studio-restart-iis-express-on-new-debugging-session
I checked "Enable Edit and Continue" under Properties/Web for the project and now it works. But the question remains, why did it start to happen all of a sudden? My project was working fine a while a go, feels like an update "fixed" something that is disturbing the IIS Express.
kshaban
0 Points
5 Posts
Re: /signalr/hubs not being served on IIS Express, but works on VS2012 Development Server
Feb 19, 2013 01:12 AM|LINK
It seems the issue is related to internal calls to System.Diagnostics.PerformanceCounterCategory.Exists().
Anyways what worked in the end for me was uninstalling IIS Express 8, deleting the IIS Express directories from "C:\Program Files" and "C:\Program Files (x86)", deleting the folder "IIS Express" under "C:\Users\{Your Name}\My Documents", then reinstalling IIS Express 8 using the Web platform installer.
I don't know what in my previous settings was causing this, but this fixed it for me.
Thanks,
Kavan