locked
signal R not working correctly after hosting to IIS RRS feed

  • Question

  • User-1028583200 posted

    All the server events are getting fired, but the client events are not getting invoked.

    Also sometimes, in Firefox it runs but never on IE.

    I've hosted the application within an environment(only for an organization), So is this the problem or something else ?

    Please help me....

    Thanks in advance :)

    Wednesday, October 19, 2016 11:04 AM

All replies

  • User283571144 posted

    Hi iklakh,

    All the server events are getting fired, but the client events are not getting invoked.

    Also sometimes, in Firefox it runs but never on IE.

    I've hosted the application within an environment(only for an organization), So is this the problem or something else ?

    As far as I know, there are many reasons will causes this error.

    I suggest you could check it by below steps:

    1.Check you have already updated the signalr application’s web.config file.

    <system.webServer>
       <modules runAllManagedModulesForAllRequests=”true”>
       </modules>
    </system.webServer> 

    2.Check you have already updated the web page that uses SignalR.

    Add the NuGet package json2.js to your project, and then reference it in your web page:

    <script src=”http://cdnjs.cloudflare.com/ajax/libs/json2/20121008/json2.js“></script>  
    

    3.Check your environment support SignalR.

    link:https://www.asp.net/signalr/overview/getting-started/supported-platforms

    More details about how to host a SignalR application, you could refer to follow link:

    https://blogs.msdn.microsoft.com/timlee/2013/03/21/hosting-a-signalr-application-on-windows-2008r2-and-iis-7-5/

    Best Regards,

    Brando

    Thursday, October 20, 2016 2:38 AM
  • User-1028583200 posted

    Thanks Brando for the reply. I've already tried all these, but I'm still facing issues with this. Its not working properly.

    I think this is because of the server securities as I've setup this in private environment (intranet) where many of external sites are blocked from firewall.

    Do you have any idea about does SignalR uses any external site or something to get run ?

    Friday, October 21, 2016 11:01 AM
  • User283571144 posted

    Hi iklakh,

    I think this is because of the server securities as I've setup this in private environment (intranet) where many of external sites are blocked from firewall.

    According to your description, I suggest you could use some test tool(Like fiddler) to test the page to make sure the firewall block the signalR application.

    If the firewall hold up the client side sending the request or receiving the request, we need to change the firewall's setting.

    More details, you could refer to follow link:

    http://stackoverflow.com/a/16905370

    Best Regards,

    Brando

    Tuesday, October 25, 2016 2:51 AM