I have a web application with ASP.NET MVC hosted on a server with IIS. This application should print a voucher or voucher when the user clicks on an action button.
Perform the test in my development environment (local), from the visual studio to print the vouchers which print well. All this with the respective printer driver installed on my machine. And now here comes the problem ...
It happens that I deploy to my test server of my web application, but by calling the url of my web application from a client's browser (a pc) or from my own client machine, if printing worked when I picked up the application with the visual, now does not print anything, in fact it falls with a server error 500.
Add a try to detect the error that the server sends me and the message is' {"error": "No printers are installed."} being on my client machine if I have installed the printer and the drivers.
To clear temrine doubts by installing the printer drivers on the server but it also did not work and still send the same error message.
Does anyone know what happens?
I'm printing all this with C # using PrintDocument '