D
dwadley
Hi There, I am trying to fax from a web page using asp.net and the
faxcomlib library. I have a windows 2003 box and a windows xp client.
I am getting an "access is denied" message when I try to call this
function. It has a problem with the following line
FaxServer.Connect("")
I have tried setting all sorts of file permissions on every part of the
hard disk drive.
I also tried the following with no success.
http://msdn.microsoft.com/library/d...s/wss/wss/_exch2k_running_asp_net_on_a_dc.asp
I tried impersonating I tried weak accounts SYSTEM all sorts of things.
Strange thing is when I build a Windows app with the same code it works
like a treat so I know there is nothing wrong with the code or the fax
service but simply some sort of permission problem. Can anyone point
me in the right direction as to how I can sort this out ?
Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal
StrSubject As String, ByVal StrBody As String, ByVal strFileName As
String)
Dim lngSend As Long
Dim strComputer As String
Dim oFaxServer As FAXCOMLib.FaxServer
Dim oFaxDoc As FAXCOMLib.FaxDoc
Dim myFaxServer As String
oFaxServer = New FAXCOMLib.FaxServer
oFaxServer.Connect("")
oFaxServer.ServerCoverpage = 0
oFaxDoc = oFaxServer.CreateDocument(strFileName)
With oFaxDoc
..FaxNumber = strTo
..DisplayName = "Fax Server"
lngSend = .Send
End With
oFaxDoc = Nothing
oFaxServer.Disconnect()
oFaxServer = Nothing
End Sub
Thanks in Advance
Regards
David
faxcomlib library. I have a windows 2003 box and a windows xp client.
I am getting an "access is denied" message when I try to call this
function. It has a problem with the following line
FaxServer.Connect("")
I have tried setting all sorts of file permissions on every part of the
hard disk drive.
I also tried the following with no success.
http://msdn.microsoft.com/library/d...s/wss/wss/_exch2k_running_asp_net_on_a_dc.asp
I tried impersonating I tried weak accounts SYSTEM all sorts of things.
Strange thing is when I build a Windows app with the same code it works
like a treat so I know there is nothing wrong with the code or the fax
service but simply some sort of permission problem. Can anyone point
me in the right direction as to how I can sort this out ?
Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal
StrSubject As String, ByVal StrBody As String, ByVal strFileName As
String)
Dim lngSend As Long
Dim strComputer As String
Dim oFaxServer As FAXCOMLib.FaxServer
Dim oFaxDoc As FAXCOMLib.FaxDoc
Dim myFaxServer As String
oFaxServer = New FAXCOMLib.FaxServer
oFaxServer.Connect("")
oFaxServer.ServerCoverpage = 0
oFaxDoc = oFaxServer.CreateDocument(strFileName)
With oFaxDoc
..FaxNumber = strTo
..DisplayName = "Fax Server"
lngSend = .Send
End With
oFaxDoc = Nothing
oFaxServer.Disconnect()
oFaxServer = Nothing
End Sub
Thanks in Advance
Regards
David