Shared fax issues
Hello,
OK....I basically have two problems and I haven't been able to find a
solution to either of them yet.
The situation is this. I am designing a webpage with C# and ASP.net and
with the help of FAXCOMEXLib I hope to be able to fax out from this site
with the following code:
----------------------------------------------------------------
FaxServer faxServer = new FaxServer();
faxServer.Connect("\\\\FaxSvr");
FaxDocument faxDocument = new FaxDocumentClass();
faxDocument.Recipients.Add(faxNum, faxRcpt);
faxDocument.Body = "D:\\Inetpub\\wwwroot\\FaxSite\\Test.rtf";
faxDocument.Priority = FAX_PRIORITY_TYPE_ENUM.fptHIGH;
faxDocument.Sender.Name = faxSndr;
faxDocument.Sender.Email = faxSndrEMail;
faxDocument.Sender.OfficePhone = faxSndrPhone;
faxDocument.Sender.FaxNumber = faxSndrFax;
faxDocument.ReceiptAddress = rcptEmail;
faxDocument.AttachFaxToReceipt = true;
faxDocument.ReceiptType = FAX_RECEIPT_TYPE_ENUM.frtMAIL;
object jobObj = faxDocument.ConnectedSubmit(faxServer);
----------------------------------------------------------------
ok....
1.) If I try to run this same code in a console app it works fine from my
development machine (not \\FaxSvr). If I put this code in a webpage it
throws and "Access Denied" error on the line 2. At first I thought this was
because I wasn't running the shared fax service on the development machine
so I moved the page to the production machine (not \\FaxSvr). This got rid
of problem #1 but brings me to problem #2.
2.) When it runs on the production machine it errors on the last line with
"Operation Failed" yet if I run that same console app it runs just fine.
Please help
--
-Scott
|