InvalidProgramException with shims in Visual Studio 2015
问题 An almost similar question has already been asked a while ago but not answered yet. And since my setup is a little different, I start a new try: I demonstrate a shortened version of my code, but even this short version produces the error. I have a method that returns an instance of a System.Printing.LocalPrintServer : public class PrintServerProvider { public LocalPrintServer Provide() { return new LocalPrintServer(new string[0], PrintSystemDesiredAccess.EnumerateServer); } } For this method