Open PCAssistSoftware opened 4 years ago
I tried the example and see the same error!
I am getting the same error!
Same error
Tried to connect to uvnc server on windows server 2008 R2 - same error. Same procedure with uvnc server on windows 7 - works! Both installations of unvc server are identical (version and settings).
For what it's worth, I fixed this problem by using the pixel format for the server depth property in RemoteServer.LibVnc.UpdateServerFormat here:
private void UpdateServerFormat(VncPixelFormat pixelFormat)
{
var serverFormat = this.server.ServerFormat;
serverFormat.RedShift = (byte)pixelFormat.RedShift;
serverFormat.GreenShift = (byte)pixelFormat.GreenShift;
serverFormat.BlueShift = (byte)pixelFormat.BlueShift;
serverFormat.Depth = (byte)pixelFormat.BitDepth; // <--------- added this line of code
this.server.ServerFormat = serverFormat;
}
Can anyone advise why I get the above error and how I can resolve it
Thank you