Using SignalR in UWP application












0















I have created an UWP application with multiple functionalities. A component of the application uses SignalR for communication. The application is running successfully locally and on some other machines but for one particular system when I deployed it and used the functionality which uses SignalR the app got crashed silently without error.



From the logs, I can see that the last call that the application made was



try{
conn = new HubConnection(BaseUrl);
proxy = conn.CreateHubProxy("hubName");
conn.Start(new LongPollingTransport()).Wait();
await proxy.Invoke("OpenPortReading");
}
catch(Exception ex)//No exception catched here
{
}


After running the last line shown above the app got crashed without exception



Thanks in Advance










share|improve this question





























    0















    I have created an UWP application with multiple functionalities. A component of the application uses SignalR for communication. The application is running successfully locally and on some other machines but for one particular system when I deployed it and used the functionality which uses SignalR the app got crashed silently without error.



    From the logs, I can see that the last call that the application made was



    try{
    conn = new HubConnection(BaseUrl);
    proxy = conn.CreateHubProxy("hubName");
    conn.Start(new LongPollingTransport()).Wait();
    await proxy.Invoke("OpenPortReading");
    }
    catch(Exception ex)//No exception catched here
    {
    }


    After running the last line shown above the app got crashed without exception



    Thanks in Advance










    share|improve this question



























      0












      0








      0








      I have created an UWP application with multiple functionalities. A component of the application uses SignalR for communication. The application is running successfully locally and on some other machines but for one particular system when I deployed it and used the functionality which uses SignalR the app got crashed silently without error.



      From the logs, I can see that the last call that the application made was



      try{
      conn = new HubConnection(BaseUrl);
      proxy = conn.CreateHubProxy("hubName");
      conn.Start(new LongPollingTransport()).Wait();
      await proxy.Invoke("OpenPortReading");
      }
      catch(Exception ex)//No exception catched here
      {
      }


      After running the last line shown above the app got crashed without exception



      Thanks in Advance










      share|improve this question
















      I have created an UWP application with multiple functionalities. A component of the application uses SignalR for communication. The application is running successfully locally and on some other machines but for one particular system when I deployed it and used the functionality which uses SignalR the app got crashed silently without error.



      From the logs, I can see that the last call that the application made was



      try{
      conn = new HubConnection(BaseUrl);
      proxy = conn.CreateHubProxy("hubName");
      conn.Start(new LongPollingTransport()).Wait();
      await proxy.Invoke("OpenPortReading");
      }
      catch(Exception ex)//No exception catched here
      {
      }


      After running the last line shown above the app got crashed without exception



      Thanks in Advance







      c# .net uwp signalr uwp-xaml






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 26 '18 at 9:18







      Manish kumar

















      asked Nov 26 '18 at 7:19









      Manish kumarManish kumar

      86




      86
























          1 Answer
          1






          active

          oldest

          votes


















          1














          SignalR client is basically installed into your Universal App by running the following package install commands (or using the NuGet GUI)



          Install-Package Microsoft.AspNet.SignalR.Client
          Install-Package PropertyChanged.Fody


          There is an excellent post here with step by step.



          http://blog.chrisbriggsy.com/SignalR-Win10-IoT/



          I do not think it is easy to get the server side of SignalR to run on Windows IoT yet. It is possible to get the server going with Xamarin Mono on Debian with NoWin HTTP Server. The issue is that SignalR requires to run a dedicated HTTP server and that is not possible on the Core version because of sandboxing... (but maybe that will change or there seem to be some hacks floating about)



          Source: https://raspberrypi.stackexchange.com/questions/42089/using-signalr-client-in-uwp-running-on-windows-iot






          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53476314%2fusing-signalr-in-uwp-application%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            SignalR client is basically installed into your Universal App by running the following package install commands (or using the NuGet GUI)



            Install-Package Microsoft.AspNet.SignalR.Client
            Install-Package PropertyChanged.Fody


            There is an excellent post here with step by step.



            http://blog.chrisbriggsy.com/SignalR-Win10-IoT/



            I do not think it is easy to get the server side of SignalR to run on Windows IoT yet. It is possible to get the server going with Xamarin Mono on Debian with NoWin HTTP Server. The issue is that SignalR requires to run a dedicated HTTP server and that is not possible on the Core version because of sandboxing... (but maybe that will change or there seem to be some hacks floating about)



            Source: https://raspberrypi.stackexchange.com/questions/42089/using-signalr-client-in-uwp-running-on-windows-iot






            share|improve this answer




























              1














              SignalR client is basically installed into your Universal App by running the following package install commands (or using the NuGet GUI)



              Install-Package Microsoft.AspNet.SignalR.Client
              Install-Package PropertyChanged.Fody


              There is an excellent post here with step by step.



              http://blog.chrisbriggsy.com/SignalR-Win10-IoT/



              I do not think it is easy to get the server side of SignalR to run on Windows IoT yet. It is possible to get the server going with Xamarin Mono on Debian with NoWin HTTP Server. The issue is that SignalR requires to run a dedicated HTTP server and that is not possible on the Core version because of sandboxing... (but maybe that will change or there seem to be some hacks floating about)



              Source: https://raspberrypi.stackexchange.com/questions/42089/using-signalr-client-in-uwp-running-on-windows-iot






              share|improve this answer


























                1












                1








                1







                SignalR client is basically installed into your Universal App by running the following package install commands (or using the NuGet GUI)



                Install-Package Microsoft.AspNet.SignalR.Client
                Install-Package PropertyChanged.Fody


                There is an excellent post here with step by step.



                http://blog.chrisbriggsy.com/SignalR-Win10-IoT/



                I do not think it is easy to get the server side of SignalR to run on Windows IoT yet. It is possible to get the server going with Xamarin Mono on Debian with NoWin HTTP Server. The issue is that SignalR requires to run a dedicated HTTP server and that is not possible on the Core version because of sandboxing... (but maybe that will change or there seem to be some hacks floating about)



                Source: https://raspberrypi.stackexchange.com/questions/42089/using-signalr-client-in-uwp-running-on-windows-iot






                share|improve this answer













                SignalR client is basically installed into your Universal App by running the following package install commands (or using the NuGet GUI)



                Install-Package Microsoft.AspNet.SignalR.Client
                Install-Package PropertyChanged.Fody


                There is an excellent post here with step by step.



                http://blog.chrisbriggsy.com/SignalR-Win10-IoT/



                I do not think it is easy to get the server side of SignalR to run on Windows IoT yet. It is possible to get the server going with Xamarin Mono on Debian with NoWin HTTP Server. The issue is that SignalR requires to run a dedicated HTTP server and that is not possible on the Core version because of sandboxing... (but maybe that will change or there seem to be some hacks floating about)



                Source: https://raspberrypi.stackexchange.com/questions/42089/using-signalr-client-in-uwp-running-on-windows-iot







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 26 '18 at 8:57









                Sanjay Singh ChouhanSanjay Singh Chouhan

                615




                615
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53476314%2fusing-signalr-in-uwp-application%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wiesbaden

                    Marschland

                    Dieringhausen