This project is read-only.

Server.Send(FaxInformations, string) yields Win32Exception on Windows 8 x64


I have verified that the string points to a valid TIF. Is this a 32-bit vs. 64-bit error complaining that the component file does not exist? Here is the stack trace:

Tourreau.Gilles.FaxDotNet.FaxException ---> System.ComponentModel.Win32Exception: The system cannot find the file specified

--- End of inner exception stack trace ---
at Tourreau.Gilles.FaxDotNet.FaxServer.Send(FaxInformations informations, String fileName)
at FaxTest.CeoFaxServer.Send(String machineName, String faxPrinterName, String recipientNumber, String recipientName, String filePath, String displayName, Int32 retries, Int32 retryDelay) in d:\Code\FaxTest\FaxTest\CeoFaxServer.cs:line 8

Here is my method:
public FaxResult Send(string machineName, string faxPrinterName, string recipientNumber, string recipientName, string filePath, string displayName, int retries, int retryDelay)
        if(string.IsNullOrEmpty(machineName)) return new FaxResult("Machine name required.", null);
        if(string.IsNullOrEmpty(recipientNumber)) return new FaxResult("Recipient number required", null);
        if(!File.Exists(filePath)) return new FaxResult(string.Concat("Source file does not exist at ", filePath), null);

            using(var server = new FaxServer(machineName, faxPrinterName))
                var info = server.GetDefaultInformations();
                info.RecipientName = recipientName;
                info.RecipientNumber = recipientNumber;
                info.DocumentName = displayName;
                server.RetriesNumber = retries;
                server.RetryDelay = retryDelay;
                var job = server.Send(info, filePath);
                return new FaxResult(job.Status.ToString(), null);
        catch (Exception e)
            return new FaxResult("Error", e);


flipdoubt wrote Oct 2, 2012 at 9:35 PM

Setting "info.CoverPage = null" allows me to successfully send a fax.

wrote Feb 14, 2013 at 3:19 AM