tags:

views:

20

answers:

0

Hi All,

In my web application, i implement Send Fax functionality which works fine local asp.net server (Casini) and fax goes to outbox of fax console.

Also on production server (windows server 2008 with IIS 7) fax is working fine (doesnt throw any exception through program) and sent fax store in queue folder (C:\ProgramData\Microsoft\Windows NT\MSFax\Queue). But sent fax does not show in outbox of Fax console. I have given permission to folders which require to send fax

Its works fine with IIS 5.1 (windows xp) but not with IIS 7.

Plese suggest any solution of this problem so that sent fax should display in Outbox of fax console. What and where should i include for asp.net permission for faxing ? Can i use FaxcomexLib instead of FaxcomLib ? or any alternate solution ??

My code is as below:

string FaxNo = "014978074000";

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

faxServer.Connect(Environment.MachineName);

FAXCOMLib.FaxDoc faxDoc = (FAXCOMLib.FaxDoc)faxServer.CreateDocument(Server.MapPath("~/images/RefLetter.jpg"));

faxDoc.FaxNumber = FaxNo;

faxDoc.DisplayName = "Request Reference "; int Res = faxDoc.Send();

Thanks