Hi i am getting this exception when i am trying to create printserver object. Here is my code
PrintServer printServer = new PrintServer(@"\\" + printServerName);
PrintQueue printQueue = printServer.GetPrintQueue(printerName);
I trying to get the printers from another machine which is windows server 2012, same code works fine if i try to acess some OS based system. Any help will be appreciated. Thanks in advance