473,320 Members | 1,832 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,320 software developers and data experts.

FaxDoc on 2000 vs XP

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")
faxServ.Connect(Environment.MachineName)

doc = faxServ.CreateDocument(fileName)

doc.FaxNumber = sNum
doc.DisplayName = sNum
doc.FileName = fileName
doc.Send()

faxServ.Disconnect()
------------------------------------------------------------------------
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")
faxServ.Connect("<machine-name>")

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

Set doc = Nothing
faxServ.Disconnect()
Set faxServ = Nothing
------------------------------------------------------------------------

Feb 16 '06 #1
2 1364
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.)

Burak SARICA

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")
faxServ.Connect(Environment.MachineName)

doc = faxServ.CreateDocument(fileName)

doc.FaxNumber = sNum
doc.DisplayName = sNum
doc.FileName = fileName
doc.Send()

faxServ.Disconnect()
------------------------------------------------------------------------
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")
faxServ.Connect("<machine-name>")

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

Set doc = Nothing
faxServ.Disconnect()
Set faxServ = Nothing
------------------------------------------------------------------------

Mar 22 '06 #2
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.)
Burak SARICA
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")
faxServ.Connect(Environment.MachineName)

doc = faxServ.CreateDocument(fileName)

doc.FaxNumber = sNum
doc.DisplayName = sNum
doc.FileName = fileName
doc.Send()

faxServ.Disconnect()
------------------------------------------------------------------------
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")
faxServ.Connect("<machine-name>")

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

Set doc = Nothing
faxServ.Disconnect()
Set faxServ = Nothing
------------------------------------------------------------------------

Mar 24 '06 #3

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

Similar topics

10
by: Dagwood | last post by:
Good morning: At least it's morning where I am. :) I have a rather newbie question I'm afraid. I have VisualStudio.NET, and have installed it along with SQL server. However I can't seem to...
2
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an...
10
by: noname | last post by:
MSDE 2000 Release A installed under windows 2000 pro will not communicate with SQL Server Manager nor MS Access on peer computer. Can someone help? Have set DISABLENETWORKPROTOCOLS=0 at install...
2
by: Scott | last post by:
Any help would be grateful :-) Problem: When I test my installation of Access 2000 MDE, I get the following error: "Unrecognised Format".. This means that Access 97 cannot read Access 2000. ...
1
by: tskelley | last post by:
Something strange has happened on my computer. I am unable to link tables from SQL Server 2000. I have tried from Access 97 and 2000, but keep getting the error "The Microsoft Jet database engine...
2
by: Jeff | last post by:
Does anyone know of any potential problems running a 2000 database with 2003? Also, what about installing all other Office products as 2003 versions but leaving Access as 2002 running a 2000...
47
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small...
5
by: Mo | last post by:
Hello all, I'm trying to set up an access 2000 .adp project connecting to a SQL server 2005 database. I can set up the connection ok, but once I have completed the setup process, I get the...
3
by: NEWSGROUPS | last post by:
I am in the midst of trying to convert about 25 Access 2000 to Access 2003. The new environment consists of Office/Access 2003 and Outlook 2003. When converting the back ends I have no problems....
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...
1
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.