@sedulen - Spot on, we are using Google Chrome and the site had been added to the blocked list at some point. Many thanks for your help Kind Regards
Hi,
I still havent managed to get this working.
Do you have any further suggestions?
Thanks.
Hi,
Yes the app works fine connecting to the api.
These are the snippets, let me know if this is what you expected to see:
` public class DocumentHub : Hub { }
app.UseEndpoints(endpoints =>
{
endpoints.MapHub<AbpCommonHub>("/signalr");
endpoints.MapHub<DocumentHub>("/signalr-document-conversion");
endpoints.MapControllerRoute("defaultWithArea", "{area}/{controller=Home}/{action=Index}/{id?}");
endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}");
}
});
await _documentHub.Clients.All.SendAsync("DocumentStatusChanged", document.Id, document.Status.ToString(), document.FileName, document.FileTypeImageName);`
Hi,
No I get the following exception instead:
An error occurred while sending the request.
at System.Net.Http.HttpConnection.SendAsyncCore (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x012d9] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs:743
at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync (System.Net.Http.HttpConnection connection, System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x000e6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:330
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00101] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:296
at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:32
at Microsoft.AspNetCore.Http.Connections.Client.Internal.AccessTokenHttpMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ff] in <559e9e9efbf743acb6b2cd8b35a77f26>:0
at Microsoft.AspNetCore.Http.Connections.Client.Internal.LoggingHttpMessageHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00095] in <559e9e9efbf743acb6b2cd8b35a77f26>:0
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:531 at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.NegotiateAsync (System.Uri url, System.Net.Http.HttpClient httpClient, Microsoft.Extensions.Logging.ILogger logger, System.Threading.CancellationToken cancellationToken) [0x00257] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.GetNegotiationResponseAsync (System.Uri uri, System.Threading.CancellationToken cancellationToken) [0x00080] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.SelectAndStartTransport (Microsoft.AspNetCore.Connections.TransferFormat transferFormat, System.Threading.CancellationToken cancellationToken) [0x00180] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsyncCore (Microsoft.AspNetCore.Connections.TransferFormat transferFormat, System.Threading.CancellationToken cancellationToken) [0x00127] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at System.Threading.Tasks.ForceAsyncAwaiter.GetResult () [0x0000c] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at Microsoft.AspNetCore.Http.Connections.Client.HttpConnection.StartAsync (Microsoft.AspNetCore.Connections.TransferFormat transferFormat, System.Threading.CancellationToken cancellationToken) [0x00091] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync (System.Net.EndPoint endPoint, System.Threading.CancellationToken cancellationToken) [0x00114] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionFactory.ConnectAsync (System.Net.EndPoint endPoint, System.Threading.CancellationToken cancellationToken) [0x001bf] in <559e9e9efbf743acb6b2cd8b35a77f26>:0 at System.Threading.Tasks.ValueTask
1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813
at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncCore (System.Threading.CancellationToken cancellationToken) [0x000a5] in <9b5c746cf3e24d3daddf4fedfbec16df>:0
at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsyncInner (System.Threading.CancellationToken cancellationToken) [0x001a4] in <9b5c746cf3e24d3daddf4fedfbec16df>:0
at System.Threading.Tasks.ForceAsyncAwaiter.GetResult () [0x0000c] in <9b5c746cf3e24d3daddf4fedfbec16df>:0
at Microsoft.AspNetCore.SignalR.Client.HubConnection.StartAsync (System.Threading.CancellationToken cancellationToken) [0x00091] in <9b5c746cf3e24d3daddf4fedfbec16df>:0
at Congresso.App.OnStart () [0x001c0] in C:\Repos\Congresso\src\Congresso.Mobile.Shared\App.xaml.cs:141
Managed to fix the previous problem and I'm getting the following exception when trying to connect to signalr
The SSL connection could not be established, see inner exception.
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:310 at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x0007b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:165
When trying https://192.168.0.22:44301/signalr-document-conversion
HI @ismcagdas
I have tried disabling that line however when I startup my xamarin app whilst the mvc/host are running I get the following exception regardless of that line of code:
Call timed out: GET https://192.168.0.22:44301/AbpUserConfiguration/GetAll
at Flurl.Http.FlurlRequest.HandleExceptionAsync (Flurl.Http.FlurlCall call, System.Exception ex, System.Threading.CancellationToken token) [0x000e6] in C:\projects\flurl\src\Flurl.Http\FlurlRequest.cs:344
at Flurl.Http.FlurlRequest.SendAsync (System.Net.Http.HttpMethod verb, System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpCompletionOption completionOption) [0x00358] in C:\projects\flurl\src\Flurl.Http\FlurlRequest.cs:195
at Flurl.Http.FlurlRequest.SendAsync (System.Net.Http.HttpMethod verb, System.Net.Http.HttpContent content, System.Threading.CancellationToken cancellationToken, System.Net.Http.HttpCompletionOption completionOption) [0x00480] in C:\projects\flurl\src\Flurl.Http\FlurlRequest.cs:201
at Flurl.Http.ResponseExtensions.ReceiveJson[T] (System.Threading.Tasks.Task1[TResult] response) [0x00024] in C:\projects\flurl\src\Flurl.Http\ResponseExtensions.cs:24 at Congresso.ApiClient.AbpApiClient.ValidateAbpResponse[T] (System.Threading.Tasks.Task
1[TResult] httpResponse, System.Boolean stripAjaxResponseWrapper) [0x000d0] in C:\Repos\Congresso\src\Congresso.Application.Client\ApiClient\AbpApiClient.cs:372
My Web.Mvc is running on app url https://localhost:44302 My Web.Host is running https://localhost:44301
Hi,
I tried using the mobile profile on MVC and had no different result.
I am currently running 3 projects, HOST, MVC and DROID. The SignalR connection works fine for MVC to HOST but not DROID to HOST.
Hi,
I'm getting a git 404 error from that link.
Anyone?
Hi @ismcagdas,
I wondered if you've had chance to take a look at this please?
I think we are very close and would be very greatful if you could cast your eye over what we are doing.
Thank you very much