IN SignalR how to open 2 clients on the same PC, same project on different ports of asp.net core - asp.net-core

I'm trying to create a simple chat using SignalR, but to test the functionality I need to open 2 clients on the same PC. Since the application works on one port, when a new one is opened, the previous one is closed.

Related

Why doesn't the Windows service take a screenshot?

There is a console application ASP.NET Core. One of its functions, sending screenshots to a client application on another PC.
If you launch this application just by double-clicking it, everything works, but as soon as you launch this application as a Windows service, everything stops working at once.
Windows services don't have access to the screen? How do I allow them to?

Using Electron based app as a web server

I'm developing a cross-platform application (Windows/Linux/macOS), which:
Should be able to run locally as a desktop application
Should be able to run on a remote machine, preferably with the same UI as on local.
So far Electron looks good enough for the first bullet.
The question is about the second one. I'd like to reuse both the logic and the UI from the local scenario for the remote scenario. In other words, I'd like to use Electron based application as a web server and connect to it via browser.
Is there any way to do that?
You can create a remote web server without Electron, just with Node.js, and deliver a web page like a PHP server for example.
But if you want to deliver a complete remote UI and manage the window remotely, that's VERY complicated to do... That needs to configure a lot of things and manage connections between client and server, using asynchronous keyboard & mouse and encryption to secure the communications.
You want a hybrid app I think, like a few of them that out out there (i.e. Slack). Generally there's a web app plus an Electron client version with some shared UI code but it's not Electron all around. The main point of electron is to be a local web server acting as a desktop app. You could certainly keep it all node though.

How to run desktop application using SQL Server database on other computer without LAN or on different ip address like as web based

i have a problem i'm new in window form application in C#. Currently finished
a app that run on LAN means on the same network.
my Question is that i want to run the this application on different places
means online this app using single sever .
please suggest me what i do for that
Thanks to every one.

Uploading data when internet is available Compact Framework

I have an application that uses cellphone data connection to communicate with a remote server over web services. However, due to the unreliability of the cell phone network the application doesn't work for as long as the cell network is down. So what I want to do is change the application to process orders directly on the device and upload the orders in the background (like a windows service) when internet is available.
Here's what I'm thinking:
2 Applications
App #1: Change the order taking application to connect to internet at application load to get all settings and save to a sdf DB. Once settings are saved locally the user can process orders and save to database.
App #2: Runs in the background constantly checking db (say every 3-5 mins) for orders and upload to remote server via WCF web service. Additionally after upload is completed updated settings are downloaded back to the device.
App #2 is what I need guidance on. On a desktop I could run a windows service however compact framework of windows mobiles doesn't appear to have a windows service type support.
Any advice?
Why run it as a separate app? In that case you'll have to do cross-process synchronization of data access to make sure that simultaneous access from both processes doesn't cause a problem. Why not create a background "service" thread inside the app itself to do data forwarding to the enterprise?

VNC server & multiclient in vb.net

I want to create an application that acts as a vnc client which is connected to multiple servers at once. First and foremost, how do I access the VNC protocol in vb.net (make a client/server, output the display etc)? Second, how can a single client connect to multiple servers?
Thanks for the help! I take it there are no VncServer or VncClient components in the .net framework?
A .net vnc client library can be downloaded here. There are instructions in the documentation for creating c# and vb.net applications.
I don't know any component in the .net framework which can do this for you. My suggestions:
Implement one of the VNC protocols yourself in .net
Encapsulate a vnc client application.
Each time you start a client, it connects to a server, so in order to connect to 2 servers, start 2 clients.