Faxing Problem (using FAXCOMLib)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Russell (russellf_at_railtech-solutions.co.uk)
Date: 02/17/04


Date: Tue, 17 Feb 2004 06:11:09 -0800

I have been experiencing a strange problem...

I have created an application which has the ability to sends Faxes. This app works fine on my dev machine (WinXP) and test Servers (Win 2000 Server). When deploying this to a clients site, it works the first time it runs, then any further attempts causes the following error...

System.Runtime.InteropServices.COMException (0x8007000D): The data is in valid. at FAXCOMLib.IFaxDoc.Send()

If I reboot the server, it will run once more.
There does not seem to be much difference between our Test Server & the Clients Machine (The only thing which stands out is that the clients machine is a Compaq ProLiant ML370 G2 (not sure if this makes a difference))

My Code -------------------------------------------------------------

FAXCOMLib.FaxServer _server = new FAXCOMLib.FaxServer();
FAXCOMLib.FaxDoc _doc;
_server.Connect("Local_Server_Name");
_doc = (FAXCOMLib.FaxDoc) _server.CreateDocument("c:\test.pdf");
_doc.FaxNumber = "123123123123";
_doc.DisplayName = "Test Title";
_doc.DiscountSend = 0;
_doc.SenderFax = "123123123123";
_doc.Send();
_server.Disconnect();
System.Runtime.InteropServices.Marshal.ReleaseComObject(_doc);
System.Runtime.InteropServices.Marshal.ReleaseComObject(_server);
_doc = null;
_server = null;

-----------------------------------------------------------------------------------
Source Code derived from...
Link: - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxlegacy_9lf4.asp

Thanks for any help.
Russell



Relevant Pages

  • Re: Unable to get desktop on Server 2003
    ... Is's usually when I reboot the desktop will appear. ... One of my servers is acting strange: I am able to log on to the server ... When I connect to the server by RDP ... RDP console ...
    (microsoft.public.windows.server.general)
  • Re: strange problem \ip do not work \hostname works!
    ... Mathieu than you for your reply, ... The problem is very strange because I can access the resource by name but ... So I can resolve the netbios name, Actually I have four servers in the same ... server by IP, It doesn't work, It continously prompt user validation. ...
    (microsoft.public.windows.server.networking)
  • Re: Unrecognized IP Addresses before the site could go live!!!
    ... You see "strange IP addresses" in the w3svc logfiles. ... webserver, so why is it strange to see outside IPs ... Microsoft MVP (Windows Server System: Security) ...
    (microsoft.public.inetserver.iis.security)
  • Re: ARP Table wierdness
    ... On November 13, 2003 03:36 am, Enrico Payne wrote: ... > have noticed a strange thing over the last few days. ... > ping, but it has an incomplete address. ... > and other machines can ping the server no problem. ...
    (RedHat)
  • Serious Issue on SBS 2003 - I need Help PLEASE
    ... It all started yesterday when I logged into the server to install Systems Center Essentials. ... The strange this is that everything appears to be working just fine. ... and it shows that the virtual SMTP service or the SMTP service was not started. ... Then I look in the event viewer and I showing tons of red alerts from ...
    (microsoft.public.windows.server.sbs)