I am developing a .Net web application (C #). From the web I need to call a jar that sends print to a printer connected to the server. If I run it from Visual Studio it works perfectly, but doing the deploy in the IIS does not work for me. The code that I am executing is the following:
Process process = new Process();
process.EnableRaisingEvents = false;
process.StartInfo.FileName = "java.exe";
string arguments = "-jar" + " \"" + pathZprinter + "\"" + " \"" + PrinterName + "\"" + " \"" + copias.ToString() + "\"" + " \"" + Filepath + "\"";
process.StartInfo.Arguments = arguments;
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = false;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
I already reviewed the permissions issue but it still does not work for me, I made a .bat also to act as an intermediary but neither. Can anybody help me? Thanks.