For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > April 2006 > Acces Denied when calling FaxDocument Submit









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Acces Denied when calling FaxDocument Submit
Neil

2006-03-06, 3:55 am

Hello all:

I have a Windows 2003 SBS server. My client is Windows XP.


I wrote this VB code in Access to send faxes using the FAXCOMEX
library:


Dim FS As New FAXCOMEXLib.FaxServer
Dim FD As New FAXCOMEXLib.FaxDocument


FS.Connect "MyServer"
FD.Body = "C:\Temp\test.rtf"


FD.CoverPageType = fcptNONE


FD.DocumentName = "Test"
FD.Priority = fptHIGH


FD.Recipients.Add (faxNumber)


FD.Submit("MyServer")


I am getting an Access Denied error on the FD.Submit line.


I have the fax printer installed on my machine and I can print anything

I want to it and it faxes fine. When I installed the fax printer, I
provided the user name and password I set up for it and I told it to
remember the password.


Any ideas?


Thanks
Neil

Neil

2006-03-07, 6:57 pm

Hello:

Looking at the event viewer on my client, I see this error in the
System Log:

Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10006
Date: 3/7/2006
Time: 11:36:05 AM
User: S-1-5-21-4152425524-3637642697-492252981-1008
Computer: STATIONR
Description:
DCOM got error "Class not registered " from the computer Apollo when
attempting to activate the server:
{5A5AA0AA-1DEB-4683-96B0-B43301E83971}

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.

When I search the registry for 5A5AA0AA-1DEB-4683-96B0-B43301E83971, I
get a key that belongs to HPPortResolver.

Could this be related to the problem?

mauriziofaseli

2006-04-26, 11:04 am

quote:
Originally posted by Neil
Hello all:

I have a Windows 2003 SBS server. My client is Windows XP.


I wrote this VB code in Access to send faxes using the FAXCOMEX
library:


Dim FS As New FAXCOMEXLib.FaxServer
Dim FD As New FAXCOMEXLib.FaxDocument


FS.Connect "MyServer"
FD.Body = "C:\Temp\test.rtf"


FD.CoverPageType = fcptNONE


FD.DocumentName = "Test"
FD.Priority = fptHIGH


FD.Recipients.Add (faxNumber)


FD.Submit("MyServer")


I am getting an Access Denied error on the FD.Submit line.


I have the fax printer installed on my machine and I can print anything

I want to it and it faxes fine. When I installed the fax printer, I
provided the user name and password I set up for it and I told it to
remember the password.


Any ideas?


Thanks
Neil

mauriziofaseli

2006-04-26, 11:11 am

Hi

In this VB code

Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
Dim objFaxServer As New FAXCOMEXLib.FaxServer
Dim objSender As FaxSender
Dim JobId As Variant

objFaxServer.Connect "10.65.123.5"

or

JobId = objFaxDocument.Submit("10.65.123.5")

I have this error
The fax server API sersion does not support the requested operation

Same ideas ?

Thanks

mfaseli@sirio-is.it
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com