locked
Occasional Signalr connection failure from WebApi to Hub RRS feed

  • Question

  • User-580022503 posted

    Hi,

    I have a signalr hubs site set up and working.  Occasionally we get an error where our WebApi cannot connect to the hub to then broadcast out a message.  In the Windows Server 2008 R2 Event viewer this is what is listed:
                3005
                An unhandled exception has occurred.
                3/21/2015 10:55:11 PM
                3/22/2015 2:55:11 AM
                1f9fcbe9b0204267b7a77d221ddd3588
                19334
                11839
                0
                /LM/W3SVC/1/ROOT/MessageHubs-1-130713687816317004
                Full
                /MessageHubs
                C:\inetpub\wwwroot\MessageHubs\
                "ServerName"
                
                3520
                w3wp.exe
                IIS APPPOOL\DefaultAppPool
                COMException
                The data is invalid. (Exception from HRESULT: 0x8007000D)
                https://MyDomain:443/MessageHubs/signalr/hubs/negotiate?authtoken=BEARER eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2dpaS1kZXYuYXJkZW50bWMubmV0L0lkUCIsbtwvaB-k6O4xlUrVtG3UGanq2e4P5BNudoINXM&connectionData=[{"name":"incidenthub"}]&clientProtocol=1.3&_=1426644559408
                /MessageHubs/signalr/hubs/negotiate
                10.0.0.2
                
                False
                
                IIS APPPOOL\DefaultAppPool
                44
                IIS APPPOOL\DefaultAppPool
                False

    The only way to "fix" this is to restart IIS.  Currently this is happening on our dev server and we need this addressed before we go to production.  

    Thank you!

    Sunday, March 22, 2015 5:38 PM

Answers

  • User-1140791523 posted

    Based on the "COMException", there might be a bug in your program regarding a COM component you might use. The error doesn't necessarily relate to SignalR. Try to debug your program and find the situation when the exception is raised.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 23, 2015 10:02 PM

All replies

  • User1918509225 posted

    Hi sprince,

    According to your post ,it seems that your issue occur occasionally,it is hard to reproduce .

    It may be related with the parameter which you are passing to hub method.

    I suggest that you could try to debug it ,check in what kind of situation could cause that kind of issue.

    Best Regards,

    Kevin Shen.

    Monday, March 23, 2015 1:43 AM
  • User-1140791523 posted

    Based on the "COMException", there might be a bug in your program regarding a COM component you might use. The error doesn't necessarily relate to SignalR. Try to debug your program and find the situation when the exception is raised.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 23, 2015 10:02 PM