470,628 Members | 2,294 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,628 developers. It's quick & easy.

Fax Service "Access denied" problem

I am searching for a way to solve this problem too. Anyone may help?
I get the same error, at the Connect() line. Even i've added the ASPNET
account to the fax's security tab. (in the printers and faxes control
panel page.)
ma81x yazmış:
I'm trying to send a fax from a web page using the following code.

On development machine with WindowsXP sp2 this works correctly.

On the test machine (Windows 2000 server sp4) this code throws
a "UnauthorizedAccessException: Access is denied."
on the doc.Send() line.
The CreateObject(...) and the faxServ.Connect(...) works.

The file to send is a pdf and I installed latest acrobat reader on the
server (7.07).
In the Security tab of the fax I set all grants to Everyone.
Everyone has full control on the folder with temporary pdf files.

Please help me.

Dim faxServ As Object 'FaxServer
Dim doc As Object 'FaxDoc

faxServ = CreateObject("FaxServer.FaxServer.1")

doc = faxServ.CreateDocument(fileName)

doc.FaxNumber = sNum
doc.DisplayName = sNum
doc.FileName = fileName

In a vbs file i wrote the following, and it works
(but unfortunately an acrobat reader still remain visible)
Dim faxServ
Dim doc

Set faxServ = CreateObject("FaxServer.FaxServer.1")

Set doc = faxServ.CreateDocument("1.pdf")
doc.FaxNumber = "+391111"

Set doc = Nothing
Set faxServ = Nothing

Mar 24 '06 #1
0 978

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by ASP.Confused | last post: by
2 posts views Thread by Loane Sharp | last post: by
3 posts views Thread by Shailesh Humbad | last post: by
1 post views Thread by Sky Fly | last post: by
3 posts views Thread by shahram.shirazi | last post: by
9 posts views Thread by mvsguy | last post: by
2 posts views Thread by =?Utf-8?B?bXVyYWRqYW1lcw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.