LocalPrintServer instance throw exception in all its methods. Netcore 5 library class

Roman Rodriguez 1 Reputation point

I am creating an instance of the LocalPrint server

However, all its methods throw an exeption


I had to add the system.printing reference directly from the dll in visual studio 2019


I am using netcore 5 , the method is in a class inside a class library project, and the method is invoked from a unit test project.

What do you think the problem is here?

Thanks in advance

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,629 questions
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
655 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,501 Reputation points

    Hi there,

    I would suggest you to look up the constructors as per the link and see if you have implemted them correctly in your code .


    Hope this Answers all your queries , if not please do repost back .
    If an Answer is helpful, please click "Accept Answer" and upvote it : )

    0 comments No comments