I have written a C# console application that uses FAXCOMEXLib.
The application reads in a text file and submits it to the fax queue.
(1) The fax queue is running on Windows 2003 SBS (and is working fine)
(2) I've developed my application using Visual Studio 2013 Express C# console app.
(3) Running the console app on my Windows 8 Ent development machine works fine, and submits the document and sends successfully
(4) If I deploy the console app to a Windows 2008 server the following happens;
Retrieving the COM class factory for component with CLSID {CDA8ACB0-8CF5-4F6C-9BA2-5931D40C8CAE} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
So the issue isn't with the modem. The log entry on the Windows server is;
The event log entry is
Event Type: Warning
Event Source: Microsoft Fax
Event Category: Outbound
Event ID: 32028
Date: 14/01/2014
Time: 15:43:42
User: N/A
Computer: FAXSERVER
Description:
An error was encountered while sending a fax. The service will attempt to resend the fax. If further transmissions fail, please verify that the phone line, fax sending device, and fax receiving device are working properly. Sender: . Billing code: . Sender company: . Sender dept: . Device name: U.S. Robotics 56K FAX EXT. Job ID: 0x0201cf113f2ab5e7. User name: FAXSERVER\Administrator.Please check the activity log for further details of this event.
So basically the fax leaves the Windows 2008 server from the C# app. and appears in the queue on the Windows 2003 SBS fax server, but it isn't being sent.
The fax number is fine, and can send a fax using the traditional File-Print (send to fax method in notepad as a example, on the Windows 2008 server), as well as receiving faxes.
How can I over come this issue ?
It could be a problem with the file you are attaching as content. I would try adding a file that you have created manually outside of the console app and see if that sends without a problem. If that works then you have at least narrowed the problem down a lot and can concentrate on how the file is created.