简体   繁体   English

System.IO.IOException错误代码

[英]System.IO.IOException ErrorCodes

So I'm getting the following error when trying to print to a Zebra printer from my web application: 因此,当尝试从Web应用程序打印到Zebra打印机时出现以下错误:

Type : System.IO.IOException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Printer is \\172.16.0.244\\Zebra2844. 类型:System.IO.IOException,mscorlib,版本= 4.0.0.0,区域性=中性,PublicKeyToken = b77a5c561934e089消息:打印机为\\ 172.16.0.244 \\ Zebra2844。 Error code is: 5 错误代码是:5

Can anybody provide some insight as to what the "Error code is: 5" represents? 谁能提供一些有关“错误代码:5”代表什么的见解? (Googling so far has yet to yield anything relevent) The offending error doesn't happen when I run the web app locally from my machine, so I'm guessing that either the server the web app is hosted on either can't resolve the IP, or its a permission issue, or something like that. (到目前为止,谷歌搜索尚未产生任何相关结果)当我从计算机本地运行Web应用程序时,不会出现令人讨厌的错误,因此我猜测Web应用程序所在的服务器要么无法解析IP,许可问题或类似问题。

Ideally, i'd like to confirm that it's the case if possible. 理想情况下,我想确认是否可能。

Anyone have any ideas/suggestions? 任何人有任何想法/建议吗?

It's a Windows error code. 这是Windows错误代码。

System error codes 系统错误代码

In the case of error 5, it's an Access Denied error. 在错误5的情况下,这是一个访问被拒绝的错误。 Which is probably in your stack trace somewhere. 可能在堆栈跟踪中的某处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM