I get the error mentioned when printing to a network printer.
The error does not occur when run under XP/Win2003, in a WinForm app or when a local printer is used.>
In my case we got same error for windows 10 os client computers. I think the error is related users and their permissions.
After making the client computers to our company's domain the error was fixed.