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

ServerErrorVersionNotSupported #12

Open
imranknp opened this issue Jun 13, 2022 · 1 comment
Open

ServerErrorVersionNotSupported #12

imranknp opened this issue Jun 13, 2022 · 1 comment

Comments

@imranknp
Copy link

I am getting the following error with the Ipp server url http://{IpAddress}/printers/Xerox-WorkCentre-6505/.printer

Message: 
SharpIpp.Exceptions.IppResponseException : Printer returned error code
Version: 256
StatusCode: ServerErrorVersionNotSupported
RequestId: 1
Sections:
Tag: OperationAttributesTag

Attributes:
(Charset) attributes-charset: utf-8
(NaturalLanguage) attributes-natural-language: en-us
(TextWithoutLanguage) status-message: Server: (503) Version Not Supported
@twaalewijn
Copy link

I don't know if your situation is the same but I ran into the same error today while setting up a scuffed environment to test using IIS as the print server.

The request classes have a default version specified which is usually enough but the printer driver I was using technically wasn't an actual printer at all so I think IIS defaulted to using IPP version 1.0 (0x0100/256).
Or maybe the IIS printer service only supports version 1.0, I haven't investigated further yet.

Anyway, there is no IppVersion.V1 at the moment it seems but I still got the requests to go through by just casting it e.g.:

var printerAttributes = await client.GetPrinterAttributesAsync(new GetPrinterAttributesRequest
{
    Version = (IppVersion) 0x0100, // IppVersion 1.0 == 0x0100 == 256
    PrinterUri = new Uri("http://{IpAddress}/printers/Xerox-WorkCentre-6505/.printer")
});

Maybe that helps in your situation as well.

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

No branches or pull requests

2 participants