Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Connection failed (UnsupportedPixelFormat) #121

Open
PCAssistSoftware opened this issue Jun 4, 2020 · 5 comments
Open

Connection failed (UnsupportedPixelFormat) #121

PCAssistSoftware opened this issue Jun 4, 2020 · 5 comments

Comments

@PCAssistSoftware
Copy link

Can anyone advise why I get the above error and how I can resolve it

Thank you

@limaolm
Copy link

limaolm commented Jul 27, 2020

I tried the example and see the same error!

@ishkang
Copy link

ishkang commented Aug 22, 2020

I am getting the same error!

@sergiofactvs
Copy link

Same error

@pkntenuki
Copy link

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).

@ScottAtBarco
Copy link

ScottAtBarco commented Jun 23, 2023

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;
        }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants