473,242 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,242 software developers and data experts.

Fax server API version does not support the requested operation

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.

Jul 21 '05 #1
2 5796
Further Information:
This ONLY occurs when the code is called from a web service. If the code is
on the form, or in an external class, it works fine. The problem is, I need
to to be triggered by a web service. Is it possible?

"Stuart" wrote:
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.

Jul 21 '05 #2
Should anyone be interested - MS tech support offered this answer...

Change the user specified in "processModel" tag of machine.config to a
higher privileged user.

This indeed did fix the "Fax server API version does not support the
requested operation" problem but obviously will not be the final answer. I
am inthe process of finding out what privileges have to change for the
machine user that runs the ASPNET processes, or what the minimum requirements
are for a domain user that is to be used for this purpose. I'll post when I
find out.

"Stuart" wrote:
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.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: FrodoBaggins | last post by:
Dear Team, I am running Visual Studio 2003 Version 7.1.3088 on Windows Server 2003. I have written a C# application that must write to the event log. When it attempts to write to the event log,...
40
by: Matt | last post by:
I want to know what is the latest C standard version? Is it C99? There are many terms I have heard, including C98, C99, C9X. Or should we call ANSI/ISO C? Please advise. Thanks!!
2
by: Stuart | last post by:
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...
8
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
4
by: VB Programmer | last post by:
When I run my ASP.NET 2.0 web app on my dev machine it works perfect. When I precomile it to my web deployment project and then copy the debug files to my web server I get this problem when trying...
11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
2
by: kodart | last post by:
Introduction Performance is the main concern to most server application developers. That’s why many of them anticipate using .NET platform to develop high performance server application regardless...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.