Faxing from ASP Page Issue

  • Thread starter Thread starter Tony Piperato
  • Start date Start date
T

Tony Piperato

Hello,

I'm trying to fax from an ASP and am encountering a problem when I hit the
".send" line:

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
a.. Error Type:
(0x80070006)
Invalid handle
/faxproject/sendfaxc.asp, line 19

I'm a bit confused on what exactly the server name should be and wonder if
the code below is not correct, if someone can provide me with the correct
code. Please don't give me a reference URL since the Microsoft examples are
VERY confusing and have not worked thus far. I'm new at this faxing thing
and understand that I may be in a bit over my head but would appreciate any
help.

<% Private Sub Form_Load()
FaxMachine ="Orion"
Filename = "C:\faxdocs\testfax1.txt"
FaxNumber="12082471943"
Set FaxServer = CreateObject("FaxServer.FaxServer")
'FaxServer.Connect ("\\" & FaxMachine)
'FaxServer.Connect ("")
Set FaxDoc = FaxServer.CreateDocument(FileName)
With FaxDoc
.FaxNumber = FaxNumber
.Send
End With
Set FaxDoc = Nothing
Set FaxServer = Nothing
End Sub %>

Thanks in advance,

Tony Piperato
 
First, I assume you are using Windows 2003. If you see the documentation on
MSDN, it clearly says that for server name you need to
specify NULL or "" , and for a remote server use the computer name only. The
\\ before the server name in your code below is unnecessary.
And yes I am going to point you to a Microsoft URL :) It is really self
explanatory.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxinto_z_0ipg.asp
Vibha Rathi [MSFT]
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'
 
Hi Tony Piperato,
Using Fax Client COM Implementation (or also referred to as "Legacy Fax COM
APIs") you cannot connect to a remote shared fax service. Please look at
MSDN documentation at
http://msdn.microsoft.com/library/en-us/fax/faxlegacy_1u42.asp which depicts
the various client-server connections possible & not possible.

So check if your code is working when a NULL value (indicating local fax
server) is used for the Connect call.

--
Raghavendra R
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.'

Vibha Rathi said:
First, I assume you are using Windows 2003. If you see the documentation
on MSDN, it clearly says that for server name you need to
specify NULL or "" , and for a remote server use the computer name only.
The \\ before the server name in your code below is unnecessary.
And yes I am going to point you to a Microsoft URL :) It is really self
explanatory.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fax/faxinto_z_0ipg.asp
Vibha Rathi [MSFT]
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no
rights.
Please do not send email directly to this alias. This alias is for
newsgroup
purposes only.'


Tony Piperato said:
Hello,

I'm trying to fax from an ASP and am encountering a problem when I hit
the
".send" line:

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services
a.. Error Type:
(0x80070006)
Invalid handle
/faxproject/sendfaxc.asp, line 19

I'm a bit confused on what exactly the server name should be and wonder
if
the code below is not correct, if someone can provide me with the correct
code. Please don't give me a reference URL since the Microsoft examples
are
VERY confusing and have not worked thus far. I'm new at this faxing
thing
and understand that I may be in a bit over my head but would appreciate
any
help.

<% Private Sub Form_Load()
FaxMachine ="Orion"
Filename = "C:\faxdocs\testfax1.txt"
FaxNumber="12082471943"
Set FaxServer = CreateObject("FaxServer.FaxServer")
'FaxServer.Connect ("\\" & FaxMachine)
'FaxServer.Connect ("")
Set FaxDoc = FaxServer.CreateDocument(FileName)
With FaxDoc
.FaxNumber = FaxNumber
.Send
End With
Set FaxDoc = Nothing
Set FaxServer = Nothing
End Sub %>

Thanks in advance,

Tony Piperato
 
Back
Top