I'm using Visual Studio 2015. I have a Visual Basic DLL.
Inside the DLL, I'm trying to get a list of printers.
I get an "Unspecified error " on


strComputer = "."

objWMIService = GetObject("winmgmts:\\ & strComputer & "\root\cimv2")


the "GetObject" is where I get the error.

Overview- I have a web page. I want the user to push a button. It calls
my DLL that is on the server and it submits a document to the print job.
The printing is done on the server, NOT the client printer.



Suggestions ?

TIA
Shall42