signalR MVC site loads indefinitely after signalR install [closed]

ε祈祈猫儿з 提交于 2019-12-02 13:40:19

问题


I created a brand new MVC4 app. Installed new signalR package from NuGet:

Install-Package Microsoft.AspNet.SignalR –pre

Whenever I run it, it loads indefinitely. I know it is caused by SignalR => App_Start/RegisterHubs that was added during install because it never gets passed "RouteTable.Routes.MapHubs(); " line when in debug.

tried it on several machines running windows 7 and Vs2012 and IIS Express

what gives??

thanks

UPDATE:

I just tried it on my home computer. Created a brand new MVC4 app, ran nuget package install and IT WORKS FINE! :) (same set up vs2012, win7, IIS express).

This is weird because everything AT MY OFFICE worked just fine until i installed the new version of signalR.

  • could it be that at work we're behind a proxy?
  • -why would that make a difference?
  • -how can I check if all the files are installed correctly during nuget install at work? What should should i be looking for/check?

one more thing: When I had previous/older version of signalR installed (without the RegisterHubs file) everything worked fine.

thanks


回答1:


And, For indefinite load times when running the site on IIS Express, Please check your IIS from ControlPanel-->Programs and Features-->Turn windows features on or off-->Internet Information Service. Check whether all the relevant features are assigned in World wide Web services under IIS., I came across with Same issue., I activated relevant features., Now, No indefinite loading.., :) Hope it will helpful for you or someone.

thanks, Shanthini.




回答2:


Found the solution:

Changing from IIS Express to VS Development Server OR Local IIS helped. Now everything works fine. Not sure what caused indefinite load times when running the site on IIS Express with Proxy at work.

thanks



来源:https://stackoverflow.com/questions/13579598/signalr-mvc-site-loads-indefinitely-after-signalr-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!