FAXCOMLib really sucks on Windows 2003, but it works on Windows 2000. WHY???



Well, dear developers, here it is a tough question for you all !! Let's

see what you can do...
Have you ever tried to use the mighty FAXCOMLib on Windows 2003 to send

a fax and get its status? No? Well, you are LUCKY! Because these lines

of code works PERFECTLY on a Windows 2000 Server machine (my great and
old Windows 2000 server!!!)...

faxJob = (FAXCOMLib.FaxJob)faxJobs.get_Item(iFaxJobNumber);
try
{
if (Environment.OSVersion.Platform.ToString().ToLower() == "win32nt")
faxJob.Refresh();


}


catch (Exception ex)
{
Misc.LogException(ex, "Symmetry");

}


string sDeviceStatus = faxJob.DeviceStatus.ToUpper();
string sQueueStatus = faxJob.QueueStatus.ToUpper();
int iFaxPages = faxJob.PageCount;

....BUT on any brand new Windows 2003 Server it throws an exception when

the faxJab.Refresh() method is called. Guess what? Windows 2003 says
"Parameter is incorrect"... WHAT THE HELL?!?!?


This really sucks, because the faxcomlib is the easiest way to send a
fax from a stand-alone .net application and it's a shame that it's not
correctly supported. Any idea on how to get the DeviceStatus of a job
working under the wings on Win2003?


Thank you very much! :-)

.



Relevant Pages

  • Re: [announcement] SYSAPI and SYSSVC for Windows
    ... What do you need Windows NT for in this application? ... You can use SEH (Structured Exception Handling) to prevent a process from ... > Ada did solve this, ... If you implement your own message queues on Windows, use an Event object ...
    (comp.lang.ada)
  • Re: Blue screen crashes
    ... A kernel mode program generated an exception which the error handler ... What is your Windows XP CD as it is described on the face of the CD? ... What Warning and Error Reports appear in Event Viewer since it's ... If you have had a malware infestation one holds the door open to let ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Sharepoint 2007 - Installation Error - Failed to register SP s
    ... Windows 2000 Server. ... It is a bug with Beta 2 where the database server is running Windows 2000. ... Server I have the following exception: ... RunBehavior runBehavior, String resetOptionsString) ...
    (microsoft.public.sharepoint.portalserver)
  • Re: windows error codes
    ... Driver Development Tools: Windows DDK ... This indicates that a kernel-mode program generated an exception which the error handler did not catch. ... For a complete list of exception codes, see the ntstatus.h file located in the inc directory of the Windows DDK. ... This article describes how to troubleshoot a "STOP 0x0000001E KMODE_EXCEPTION_NOT_HANDLED" error message. ...
    (microsoft.public.windowsxp.general)
  • .net user permissions in IIS
    ... We have a windows 2003 domain with 4 web servers in. ... (Exception from HRESULT: 0x80070005 ... the current web request. ...
    (microsoft.public.dotnet.framework.aspnet)