fax from asp - unspecified error

F

Florin Chirtes

Hi,
i need to be able to send fax from asp. So i have conected a fax modem to my
computer, windows 2000 with IIS instaled. I have tested the fax with word
and the fax was sended. Now i have created a service under my IIS and an
asp file:

this is the code from my asp file:
<%
set FS = Server.CreateObject("FaxServer.FaxServer")
FS.Connect ("")
Set FD = FS.CreateDocument("d:\test.txt")
FD.FileName = "d:\test.txt"
FD.FaxNumber = "0265211222" ' Fax number
FD.DisplayName = "abc"
FD.DiscountSend = 0
FD.SendCoverpage = 0

FD.Send
FS.Disconnect
Set FD = Nothing
Set FS = Nothing
%>

when I execute my asp it's give me the following error:
Error Type:
(0x80004005)
Unspecified error
/fax/test.asp, line 3

What can be the problem?

Thanks in advance for your help!
 
P

Peter Haider

Hello,

have you given the access rights for drive D:\ for the anonymous user?

But could you do me a favour? Because i have troubles to send a fax via asp
/ vbscript too.
This is my script and it hangs at the line "jobno = faxdoc.send" and no one
of this news group know, why it doesnt work. It wold be helpful for me, to
get the info, yes this script works well on another computer, the i could
focus to search for errors on other sides.

Dim Faxserver
Dim FaxDoc
Dim JobNo
Dim Dateiname
Set Faxserver = Server.Createobject("Faxserver.Faxserver")
FaxServer.Connect("gericom.sbs.office")
Filename = server.MapPath("Orders/10173.pdf")
Set FaxDoc = FaxServer.CreateDocument(Filename)
FaxDoc.SendCoverpage = 0
FaxDoc.RecipientName = "Arnold"
FaxDoc.SenderName = "Peter"
FaxDoc.FaxNumber = "12345678"
FaxDoc.SenderFax = "87654321"
JobNo = FaxDoc.Send()
Set FaxDoc = Nothing
FaxServer.Disconnect()
Set FaxServer = Nothing

Best regards
Peter Haider
 
F

Florin Chirtes

Hi,
maybe is a stupid idea but try to give write rights for anonymous user for
directory where the fax service is trying to create the .tif file that is
sended by the fax service. Also for checking try to give rights for
anonymous for drive C.
I had similar problem and at this line "faxdoc.send" nothing happened but an
"invisible" alert was showned(the alert was invisible but the sound that an
alert is showed has played)

Regards
Florin Chirtes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top