Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
83 views
in Technique[技术] by (71.8m points)

c# - How to use the printer with IIS

When I run my WebService in VisualStudio, it works correctly. Prints on the printer without problems using a dll. When I publish to IIS, it doesn't print but it doesn't give any error, the page keeps loading. I use two functions of this dll and only the one of the printing crashes. I entered a user account in IIS and gave permission for it, but the problem remains. What can be done?

IIS log:

#Software: Microsoft Internet Information Services 10.0
#Version: 1.0
#Date: 2021-01-27 21:13:34
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2021-01-27 21:13:34 ::1 GET /WebserviceHost/WebService1.asmx op=ImprimeNota 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/87.0.4280.141+Safari/537.36 http://localhost/WebserviceHost/WebService1.asmx 200 0 0 833
2021-01-27 21:14:16 ::1 GET /WebserviceHost/WebService1.asmx op=ImprimeNota 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/87.0.4280.141+Safari/537.36 http://localhost/WebserviceHost/WebService1.asmx 200 0 0 3

question from:https://stackoverflow.com/questions/65927663/how-to-use-the-printer-with-iis

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...