Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value cannot be null. (Parameter 'stream') #2577

Open
domleg opened this issue Apr 3, 2024 · 0 comments
Open

Value cannot be null. (Parameter 'stream') #2577

domleg opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels
1.77.3 Version 1.77.3 Need 2 check VNC Issues related to the VNC protocol

Comments

@domleg
Copy link

domleg commented Apr 3, 2024

Expected Behavior

That the RemoteDesktop Connect method works without errors.

Current Behavior

When using VNCSharp this method was working fine but the performance was very bad. I upgraded my project to .NET Core 8.0 and used VNCSharpCore instead.

// Create a new RemoteDesktop control
RemoteDesktop newRd = new RemoteDesktop();
vncPanel.Controls.Add(newRd); // Add the new control to the panel
newRd.Dock = DockStyle.Fill;

try
{
// Connect
newRd.Connect(ipAddress, true, true); // Adjust parameters as needed
// Optionally, handle disconnections or other events here
newRd.ConnectionLost += (sender, e) =>
{
MessageBox.Show("Connection lost.");
};
}
catch (Exception ex)
{
MessageBox.Show($"Failed to connect: {ex.Message}"); //fails here with the error in the title.
}

Possible Solution

I need to know what this Parameter 'stream' is so I can fix it.

Steps to Reproduce (for bugs)

Not sure as it's specific to our environment.

Context

Trying to make a grid of all our Linux devices where all VNC Clients are visible in the grid in real time over a local network at 1 Gbps.

Your Environment

VNC Servers are running on Linux, client can simply connect with IP address.

@Kvarkas Kvarkas self-assigned this Apr 10, 2024
@Kvarkas Kvarkas added VNC Issues related to the VNC protocol Need 2 check 1.77.3 Version 1.77.3 labels Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.77.3 Version 1.77.3 Need 2 check VNC Issues related to the VNC protocol
Projects
None yet
Development

No branches or pull requests

2 participants