问题描述
使用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服务器ASP.NET上托管的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!