Note that there are some explanatory texts on larger screens.

plurals
  1. POSignalR not working when deployed on remote machine
    primarykey
    data
    text
    <p>I developing a web chat application, and having a weird problem. the application is working fine on my local machine but just stuck on remote machine.</p> <p>totally im lost, how to provide clue about my problem (please advice if there are trick to trace the problem), the only error i got from <code>$.connection.hub.error</code> is </p> <pre><code>Protocol error: Unknown transport. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Protocol error: Unknown transport. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [InvalidOperationException: Protocol error: Unknown transport.] Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(HostContext context) +866 Microsoft.AspNet.SignalR.Hubs.HubDispatcher.ProcessRequest(HostContext context) +174 Microsoft.AspNet.SignalR.Owin.CallHandler.Invoke(IDictionary`2 environment) +628 Microsoft.AspNet.SignalR.Owin.Handlers.HubDispatcherHandler.Invoke(IDictionary`2 environment) +222 Microsoft.Owin.Host.SystemWeb.OwinCallContext.Execute() +55 Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object extraData) +259 [TargetInvocationException: Exception has been thrown by the target of an invocation.] Microsoft.Owin.Host.SystemWeb.CallContextAsyncResult.End(IAsyncResult result) +110 Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.EndProcessRequest(IAsyncResult result) +7 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8836913 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +184 </code></pre> <p>and here is what the console log provided.</p> <pre><code>SignalR: Negotiating with '&lt;root_url&gt;/signalr/negotiate'. jquery.signalR-1.0.0-rc2.js:54 SignalR: Attempting to connect to SSE endpoint '&lt;root_url&gt;/signalr/connect?transport=serverSentEv…2fc32a4&amp;connectionData=%5B%7B%22name%22%3A%22xmppservicehub%22%7D%5D&amp;tid=7' jquery.signalR-1.0.0-rc2.js:54 SignalR: EventSource timed out trying to connect jquery.signalR-1.0.0-rc2.js:54 SignalR: EventSource readyState: 0 jquery.signalR-1.0.0-rc2.js:54 SignalR: EventSource calling close() jquery.signalR-1.0.0-rc2.js:54 SignalR: This browser supports SSE, skipping Forever Frame. jquery.signalR-1.0.0-rc2.js:54 SignalR: SignalR: Initializing long polling connection with server. jquery.signalR-1.0.0-rc2.js:54 SignalR: Attempting to connect to '&lt;root_url&gt;/signalr/connect?transport=longPolling&amp;…fc32a4&amp;connectionData=%5B%7B%22name%22%3A%22xmppservicehub%22%7D%5D&amp;tid=10' using longPolling. jquery.signalR-1.0.0-rc2.js:54 SignalR: Longpolling connected jquery.signalR-1.0.0-rc2.js:54 SignalR: Attempting to connect to '&lt;root_url&gt;/signalr?transport=longPolling&amp;connecti…%7CS%2C1%7CT%2C0%7CQ%2C0&amp;groups=%5B%22XmppServiceHub.howtodemo%22%5D&amp;tid=2' using longPolling. jquery.signalR-1.0.0-rc2.js:54 SignalR: Attempting to connect to '&lt;root_url&gt;/signalr?transport=longPolling&amp;connecti…%7CR%2C0%7CS%2C1%7CT%2C0&amp;groups=%5B%22XmppServiceHub.howtodemo%22%5D&amp;tid=8' using longPolling. jquery.signalR-1.0.0-rc2.js:54 SignalR: Attempting to connect to '&lt;root_url&gt;/signalr?transport=longPolling&amp;connecti…%7CR%2C0%7CS%2C1%7CT%2C0&amp;groups=%5B%22XmppServiceHub.howtodemo%22%5D&amp;tid=5' using longPolling. jquery.signalR-1.0.0-rc2.js:54 SignalR: An error occurred using longPolling. Status = error. &lt;html&gt; &lt;head&gt; &lt;title&gt;Protocol error: Unknown transport.&lt;/title&gt; </code></pre> <p>FYI:</p> <ul> <li>Server side is a SignalR Hub with readonly session described <a href="https://gist.github.com/davidfowl/4692934" rel="nofollow">here</a></li> <li>Asp.Net MVC 4</li> <li>IIS 6 Webserver</li> </ul> <p>I'm lost about how to provide any clue, if those information not enough please tell me what info should i provide more.</p> <p><strong>EDIT</strong></p> <p>After update with the latest libs from nuget (version 1.0.0) i got the following eror (still the same console log, still working fine on local machine but on remote machine)</p> <pre><code>[ObjectDisposedException]: The CancellationTokenSource has been disposed. Server stack trace: at System.Threading.CancellationTokenSource.ThrowIfDisposed() at System.Threading.CancellationTokenRegistration.Dispose() at Microsoft.AspNet.SignalR.Infrastructure.CancellationTokenExtensions.&lt;&gt;c__DisplayClass6`1.&lt;SafeRegister&gt;b__1() at Microsoft.AspNet.SignalR.Infrastructure.DisposableAction.Dispose(Boolean disposing) at Microsoft.AspNet.SignalR.Infrastructure.DisposableAction.Dispose() at Microsoft.AspNet.SignalR.Transports.TransportHeartbeat.EndConnection(ConnectionMetadata metadata) at Microsoft.AspNet.SignalR.Transports.TransportHeartbeat.AddConnection(ITrackingConnection connection) at Microsoft.AspNet.SignalR.Transports.LongPollingTransport.ProcessRequest(ITransportConnection connection) at Microsoft.AspNet.SignalR.PersistentConnection.ProcessRequest(HostContext context) at Microsoft.AspNet.SignalR.Hubs.HubDispatcher.ProcessRequest(HostContext context) at Microsoft.AspNet.SignalR.Owin.CallHandler.Invoke(IDictionary`2 environment) at Microsoft.AspNet.SignalR.Owin.Handlers.HubDispatcherHandler.Invoke(IDictionary`2 environment) at Microsoft.Owin.Host.SystemWeb.OwinCallContext.Execute() at Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object extraData) Exception rethrown at [0]: at Microsoft.Owin.Host.SystemWeb.Utils.&lt;&gt;c__DisplayClass1.&lt;GetRethrowWithNoStackLossDelegate&gt;b__0(Exception ex) at Microsoft.Owin.Host.SystemWeb.Utils.RethrowWithOriginalStack(Exception ex) at Microsoft.Owin.Host.SystemWeb.CallContextAsyncResult.End(IAsyncResult result) at Microsoft.Owin.Host.SystemWeb.OwinHttpHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) </code></pre> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload