传真机无法正常工作,在IIS服务器ASP.NET上托管 [英] Fax machine not working, hosting on IIS Server ASP.NET

查看:65
本文介绍了传真机无法正常工作,在IIS服务器ASP.NET上托管的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Visual Studio解决方案传真机工作正常,直接连接到系统。但托管到IIS 7.5 Server后,传真机没有响应。



这是我正在使用的代码..

///////

try

{

FAXCOMLib.FaxServer faxServer = new FAXCOMLib.FaxServer();

faxServer.Connect(Environment.MachineName);

FAXCOMLib.FaxDoc faxDoc =(FAXCOMLib.FaxDoc)faxServer.CreateDocument(FileName);

faxDoc.RecipientName = RecipientName;

faxDoc.FaxNumber = FaxNumber;

faxDoc.DisplayName = DocumentName;

int Response = faxDoc.Send();

faxServer.Disconnect();



}

catch(Exception Ex){MessageBox.Show(Ex.Message); }



//////////////

甚至1)我将应用程序池标识设置为:LocalSystem

2)传真defalut设置为打印机

3)传真服务运行状态:自动

但它不工作



帮助我任何人



提前致谢......

Using Visual Studio solution FAX machine is working fine which is directly connect to the system. But after hosting into IIS 7.5 Server,FAX machine not responsing.

this is the code am using..
///////
try
{
FAXCOMLib.FaxServer faxServer = new FAXCOMLib.FaxServer();
faxServer.Connect(Environment.MachineName);
FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(FileName);
faxDoc.RecipientName = RecipientName;
faxDoc.FaxNumber = FaxNumber;
faxDoc.DisplayName = DocumentName;
int Response = faxDoc.Send();
faxServer.Disconnect();

}
catch (Exception Ex) { MessageBox.Show(Ex.Message); }

//////////////
Even 1)i set application pool identity to :LocalSystem
2)Fax defalut setting as printer
3)Fax service running status :Automatic
but it is not working

help me anyone

Thanks in advance......

推荐答案

您是否检查过托管IIS的物理PC服务器是否附带了可以访问的调制解调器?您无法访问连接到客户端计算机的任何传真(或其他调制解调器),因为您的C#代码在服务器上运行,而不是在客户端上运行。
Have you checked that the physical PC server hosting IIS has a modem attached that you can access? You cannot access any fax (or other modem) attached to the client machine, as your C# code runs on the server, not the client.


这篇关于传真机无法正常工作,在IIS服务器ASP.NET上托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆