Hi, I'm getting this exception when I try to create printserver
object.
Here is my code:
PrintServer printServer = new PrintServer(@"\\" + printServerName);
PrintQueue printQueue = printServer.GetPrintQueue(printerName);
I'm trying to get the printers from another machine which is running on Windows Server 2012. Same code works fine if I try to access some OS based system. Any help will be appreciated. Thanks in advance.