Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

error connecting to signalR after upgrading from a very old version to to 8.9.1 #9186


User avatar
0
kasem created

Hi

Connection to signalR fails with the following exception

URL: //localhost:22742/signalr-chat/negotiate?enc_auth_token=undefined&negotiateVersion=1

System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s) at Abp.Runtime.Security.SimpleStringCipher.Decrypt(String cipherText, String passPhrase, Byte[] salt, Nullable1 keySize, Byte[] initVectorBytes) at MyApp.Web.Startup.AuthConfigurer.SetToken(MessageReceivedContext context, Boolean allowAnonymous) in C:\Secure\Code\MyApp\Aspnet-core\src\MyApp.Web.Host\Startup\AuthConfigurer.cs:line 126 at MyApp.Web.Startup.AuthConfigurer.QueryStringTokenResolver(MessageReceivedContext context) in C:\Secure\Code\MyApp\Aspnet-core\src\MyApp.Web.Host\Startup\AuthConfigurer.cs:line 90 at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerEvents.MessageReceived(MessageReceivedContext context) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.AuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme) at Abp.AspNetZeroCore.Web.Authentication.JwtBearer.JwtTokenMiddleware.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kasem,

    Could you clear your browser cookies and local storage and try again ?