472,796 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Fax server "Access denied" problem

I am searching for a way to solve this problem (the below post) 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 23 '06 #1
1 2728
I am searching for a way to solve this problem (the below post) 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 #2

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

Similar topics

1
by: 9628 | last post by:
error while trying to run project: Unable to start debugging on the web server. Access is denied. Would you like to disable future attempts to debug ASP.NET pages for this project? I have tried...
1
by: ganesh | last post by:
I installed dotnet and when i try to run a web application i get the error messagebox saying "Unable to debug on server,Access is denied.Would you like to disable the future attempts to debug".
2
by: Loane Sharp | last post by:
Hi there I'm using VB.NET and Office Web Components to access a SQL Server 2005 Express database and draw pictures on the fly in my ASP.NET application. Using .ExportPicture to write the...
1
by: 9628 | last post by:
error while trying to run project: Unable to start debugging on the web server. Access is denied. Would you like to disable future attempts to debug ASP.NET pages for this project? I have tried...
3
by: shahram.shirazi | last post by:
Hi I have mysql, php and apache all hosted and am trying to use phpmyadmin to connect to the database however I get a user access problem, it says access denied. Any help would be greatly...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.