Thank you, Sean, very useful video and simplified signalR concept. But I the MVVM model is really deep even though I checked your MVVM tutorial, is possible to do a tutorial on MVVM using the new community toolkit on WPF?
Hello Sean! Thanks for your video. I have two questions: - Is it possible to retrieve the messages already sent when instantiating a new window? (Retrieve the selected colors from window 1 when opening the new window 2 (without database ?)) - Why when I run the SignalR server in debug mode it works but from the debug folder the connection is refused ( also in admin mode) ? Thanks a lot!
Hi, Sean, it's a great tutorial and subscribed. I tried exactly as it is, but failed with exception "No connection could be made because the target machine actively refused it .". Do you know where I can fix it? Tks. JC
hi sean! how could I host this signalR project in a network? Not on the internet, I mean a LAN network, which only me and my coworkers' computers have access to? How to "publish" this signalR project? Thank you for the great content!!
Hey Leandro! For something like that, you'd have to host it on one of the computers within the LAN (rather than the cloud). I'd recommend using something like IIS if it's a Windows machine. I'll admit I'm not an expert on this, but checking out an IIS tutorial might be a good place to start!
Hey Sean, maybe this is a silly question, but maybe you can help me: in ColorPicker xaml file you wrote: "ElementName=root" why do you bind to user control?
20:57 - Good example when to use `Task.ContinueWith` instead of `async/await` Another video related to this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0SCKUine6tY.html Second Video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8g34hhmiI_Q.html&ab_channel=SingletonSean Diff that has the diff between SendAsync and InvokeAsync ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8g34hhmiI_Q.html
Im curious if anyone knows if its possible to self host a SignalR server in .NET Core or .NET 5 and broadcast to clients? Essentially the reverse of this example?
Hi I'm trying to use use signalr to make an "online game" (it's literally only 2 rectangles). I was able to follow up until about halfway. The "game" uses monogame/XNA and I could of used sockets but as far a I know there isn't a way to communicate securely across the internet (that doesn't involve shit ton of custom code) using sockets. Documentation on internet is pretty scarce, I find, and my knowledge of signalr isn't broad/good enough to transpose what you did into my project. pls help.
Thanks for your video that helped a lot, but I have a problem and it is that I want to place the signalr server in an iis on a windows server machine, but I can't get it to work the same way, you could make a video on how to make the settings.
Hey Jose, glad the video helped. I personally haven't used IIS for SignalR, and have only used IIS once or twice a few years back. I usually just deploy my applications to Azure nowadays. Do you think your issue is specifically with SignalR? In other words, if you deployed a web application to IIS without SignalR (ex: API endpoints, Razor pages, etc.), do the endpoints work as expected?
@@SingletonSean Thanks for answering me recently I found the cause of the problem capable, when I try to connect to the hub of signalR the server responds with a 101 instead of 200 and on the other hand when publishing some websites in iis I do not have any problem with them the problem only happens when trying to connect to signalr
Can you add authentication to SignalR? I have an application that uses an API with JWT to validate authenticated clients. SignalR would make a better replacement for some of these API endpoints, but I don't want them open to anybody.
Of course avatar! That is actually my exact next plan for this application, hahaha. I did a large scale SignalR project a while back and couldn't find any good examples with JWT auth. From what I've read, the key is to pass the access token as a query string to the hub connection URL. I also just did some research, and it seems there's better support for this since I checked last time. If you haven't checked this out yet: docs.microsoft.com/en-us/aspnet/core/signalr/authn-and-authz?view=aspnetcore-3.1
I went through the tutorial starting with the Source Code (Start) files and end up with an error when running ColorChat.SignalR: System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.' Inner Exception FileLoadException: Could not load file or assembly 'System.Text.Encodings.Web, Version=5.0.0.0, Culture=neutral When the error is shown, it is displayed in reference to Startup.cs and highlights line 35: enpoints.MapHub("/colorchat"); I'm not sure what this means, but my guess it that is a problem with the newest ASP.NET framework that is available as of 12/3/2020? I AM able to run the Source Code (End) files flawlessly.
Hey Dana, I was able to get the application working on .NET 5. Are you using .NET 5? If so, you will need to port your project files and update your NuGet packages. I plan on creating a quick video on porting projects to .NET 5, and I suppose I will make this application the demo app. Alternatively, you could stick to .NET Core 3 for now, make sure you have .NET Core 3 SDK installed, and make sure all of the NuGet packages are not updated for .NET 5. Hopefully that helps a bit, Dana!
@@SingletonSean I _really_ appreciate your response, but I have no idea what .NET version I'm running, and I'm completely lost with your second sentence. I have a long way to go with Windows programming.