G
Guest
Hi all,
I am trying to send a fax programatically using the FAXCOMEx.DLL with .Net
(C# and COM Interop).
I have built a little class to encapsulate the logic for sending the fax -
not much to it really. This works nicely when I include this class in a
Windows Forms project and call it from a button's event handler.
Then, when I include the class - as a component in our business components
DLL, and call it from a web service, the "submit" call fails, with the error
"Fax server API version does not support the requested operation". (Yet it
works from the WinForms app with exactly the same parameters, for server
name, etc.)
The code looks like this;
FaxDocument faxDoc = new FaxDocumentClass();
faxDoc.CoverPageType = FAX_COVERPAGE_TYPE_ENUM.fcptLOCAL;
faxDoc.CoverPage = coverPageName;
faxDoc.Recipients.Add(FaxNumber,RecipientName);
faxDoc.Subject = Subject;
faxDoc.Note = Notes;
faxDoc.Body = FileName;
faxDoc.Submit(faxServerName);
I've tried using impersonation to run this code under various "alias"
including the system admin! Same error :-( I've checked all the permission
on the fax server - which FYI is a Windows 2003 server running SBS 2003.
I have a unit test, calling and External facing web service, which calls a
web service behind the firewall, which calls this code. All this code is
running on my development machine at the moment, but once deployed will run
on two different servers.
If someone could shed some light on what this error may mean, and possibly
why it would run in one solution, and not the other, I would be most thankful.
Thanks in anticipation.
Stuart.
I am trying to send a fax programatically using the FAXCOMEx.DLL with .Net
(C# and COM Interop).
I have built a little class to encapsulate the logic for sending the fax -
not much to it really. This works nicely when I include this class in a
Windows Forms project and call it from a button's event handler.
Then, when I include the class - as a component in our business components
DLL, and call it from a web service, the "submit" call fails, with the error
"Fax server API version does not support the requested operation". (Yet it
works from the WinForms app with exactly the same parameters, for server
name, etc.)
The code looks like this;
FaxDocument faxDoc = new FaxDocumentClass();
faxDoc.CoverPageType = FAX_COVERPAGE_TYPE_ENUM.fcptLOCAL;
faxDoc.CoverPage = coverPageName;
faxDoc.Recipients.Add(FaxNumber,RecipientName);
faxDoc.Subject = Subject;
faxDoc.Note = Notes;
faxDoc.Body = FileName;
faxDoc.Submit(faxServerName);
I've tried using impersonation to run this code under various "alias"
including the system admin! Same error :-( I've checked all the permission
on the fax server - which FYI is a Windows 2003 server running SBS 2003.
I have a unit test, calling and External facing web service, which calls a
web service behind the firewall, which calls this code. All this code is
running on my development machine at the moment, but once deployed will run
on two different servers.
If someone could shed some light on what this error may mean, and possibly
why it would run in one solution, and not the other, I would be most thankful.
Thanks in anticipation.
Stuart.