Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
can I use SerialPort and SignalR together?
SignalR runs in the browser and the Hub runs on the server. The browser cannot interact directly with the serial port. However, this is an experimental browser API that can access the serial port.
https://developer.mozilla.org/en-US/docs/Web/API/SerialPort
ASP.NET (server side code) and the Hub can interact with the serial port but it only works if the device is attached to the web server's serial port. This setup works on the local machine where the computer is both the client and web server. It will not work if the application is deploy to a host on the internet.
In short, your approach is not going to work unless the application runs on your development machine. Keep in mind, that ASP.NET web forms uses a post back to execute code. The only time you'll see updates is when server side code has executed (Post Back) or AJAX calls (JavaScript).
A Windows application or service would be a much easier solution.