Asked by:
SignalR.Sample code not running on Windows Server 2012

Question
-
User-166583996 posted
I built the SignalR.sample which demonstrates broadcasting with a Tickertape example.
It works fine in IISExpress and IIS7 running under windows 7 on my computer.
I have now tried to run it on a hosted Windows server 2012 and the page shows but it is not being updated.
The reason for putting the program on the server in the first place is because I have a program that is very similar to the
SignalR.Sample on that server. It works fine but after some hours it stops working. So I was trying to use the SignalR.Sample as a test to see if the problem was in my code or perhaps was to do with something in the server set up.
Has anybody got any ideas what could be wrong?
Alan
Monday, August 4, 2014 4:09 PM
All replies
-
User1918509225 posted
Hi AlanTJohnostone,
For your problem,I suggest that you can try the following steps below:
Step 1 ,please refer to the link about how to self host signalr
Step 2 ,you can try the following steps about hosting signalR in server 2008 ,which may give you a right direction
- Update the SignalR application's web.config file to enable "run all managed modules for all requests" (for short, this is the RAMMFAR setting).
- Update the web page that uses SignalR to communicate with the server:
- Add a reference to the json2.js library.
- Add a <meta> tag that forces the content to display in a recent browser mode.
- Set up a Windows Server 2008r2 with IIS 7.5 as follows:
- Install the .NET Framework version that your SignalR application requires.
- Create a site and associate it with the appropriate application pool.
You can also refer to the link below :
Best Regards,
Kevin Shen.
Tuesday, August 5, 2014 8:41 AM -
User-166583996 posted
I was specifically trying to use a hosted server 2012.
I tried step 2, 1 and 2 but they had no effect. I was only trying to get it to work to isolate a problem on another
web page that did run. I have now sorted that out so getting this to run is now just an academic exercise so I
will not be giving it much time. It is however insane that a sample application cannot run on one of their own servers.
Thank you for replying.
Alan
Tuesday, August 12, 2014 3:34 PM -
User-1045082127 posted
i solved the problem . if a program works good on local and an error is in VPS refer to http://stackoverflow.com/a/39747216/3237530
Wednesday, September 28, 2016 12:22 PM -
User-916281475 posted
The link not working, I have <gwmw class="ginger-module-highlighter-mistake-type-3" id="gwmw-15833083778239308810272">same issue</gwmw>, could you please help?
Wednesday, March 4, 2020 7:53 AM