简体   繁体   中英

This code work in local development system and local IIS but not working fine in Application server

Why is this code not working in my production server? This code is correctly working in local development system. Do I need to change any settings in my production server?

$(function() {  
  alert('working fine');

  $.connection.hub.logging = true;
    var con = $.connection.hitCount;
    var message = 'hai';
    var name = 'suresh';

    con.client.onHitRecorded = function(i) { 
        alert('not working'); // not firing
    };

    $.connection.hub.start().done(function() {

        con.server.send(message, name);
        alert('working fine');

    });
})

This is not a problem in code. actually this is not a code error. If you want solve this add redis dll to your application. if you add this it will work fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM