Base solution for your next web application
Open Closed

Signal R status 500 in Azure #2293


User avatar
0
joshboilered created

Hey Gents,

When I run the app locally, targeting a local db, Signal R works. However, I just recently pushed to Azure web services with a sql db. Everything seems to be working good with the exception of signalR. See attached errors.

Thanks for your help in advance. Josh


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

    Hi,

    Do you use Azure websites or do you have a Virtual Machine on azure ?

  • User Avatar
    0
    joshboilered created

    <cite>ismcagdas: </cite> Hi,

    Do you use Azure websites or do you have a Virtual Machine on azure ?

    Azure Websites.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Have you seen this forum topic #1891@de6bfba4-df3a-40f8-a554-b893cc8ca062 ? You can try this workaround <a class="postlink" href="https://github.com/SignalR/SignalR/issues/3670">https://github.com/SignalR/SignalR/issues/3670</a>.

  • User Avatar
    0
    leop created

    I found a solution that seems to be working - the solution is referenced here: <a class="postlink" href="http://stackoverflow.com/questions/36475209/signalr-2-fails-on-azure">http://stackoverflow.com/questions/3647 ... s-on-azure</a>

    To fix this, I added a reference to Owin.Security.AesDataProtectorProvider (NuGet package) and then added app.UseAesDataProtectorProvider() in ConfigureOwinServices() right before app.MapSIgnalR();

    using Owin.Security.AesDataProtectorProvider;
    ...
    
    namespace App.Web.Startup
    {
        public class Startup
        {
            private static void ConfigureOwinServices(IAppBuilder app)
            {
                app.Properties["host.AppName"] = "App";
    
                app.UseAbp();
    
                app.UseAesDataProtectorProvider();
                app.MapSignalR();
            }
        }
    }
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks @leop,

    We alrady implemented in AspNet Zero. Thanks again :)