Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i created a stand alone project using SignalR. Its working fine with visual studio 2012. I have used .net framework 4.5.1 for this. But after hosting the application in iis7(server 2008r2) the signalR part not working.I am continuously receiving the data from server but client side function not able to show data.

JavaScript
$.connection.hub.qs = { 'GameType': '' + gametype + '', 'DaysetId': '' + daysetid + '', 'PlayType': '' + $('#<%=hdngame.ClientID%>').val() + '' } //"GameType = " + gametype + "&DaysetId = " + daysetid;
          function formatStock(stock) {
              return $.extend(stock, {
                  data: stock.Data
              });
          }
          ticker.client.updateStockPrice = function (stock) {
              if ($('#<%=hdngame.ClientID%>').val() == "inplay") {
                  $(".lastupdated").text("Last Updated On: " + (new Date()).format("h:mm:ss tt"));
                  $('#dtGame').dataTable().fnDestroy();
                  gridLoad(stock);
                  disablebetItem();
              }

          }
          $.connection.hub.start().done(init);

              function init() {
                  ticker.server.getAllStocks().done(function (stock) {
                     $(".lastupdated").text("Last Updated On: " + (new Date()).format("h:mm:ss tt"));
                     if (stock[0].Data.length > 0) {
                         $('#dtGame').dataTable().fnDestroy();
                         gridLoad(stock[0].Data);
                         disablebetItem();
                     }
                  });
              }


this Code is working perfectly fine on my local server.

What I have tried:

I have put this code in my web config as well.
<validation validateintegratedmodeconfiguration="false">
<modules runallmanagedmodulesforallrequests="”true”">
Posted
Updated 14-Jul-16 19:42pm
v2
Comments
Herman<T>.Instance 15-Jul-16 2:36am    
Are you using NET.TCP for these messages?
Sunasara Imdadhusen 15-Jul-16 2:42am    
Are you getting any error? please check in your browsers console.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900