Faxing from ASP.NET page using faxlibcom

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
 
G

Guest

If you ever got the answer to this problem please POST - I am having that exact problem.
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

User submitted from AEWNET (http://www.aewnet.com/)
 
G

Guest

If you ever got the answer to this problem please POST - I am having that exact problem.
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

User submitted from AEWNET (http://www.aewnet.com/)
 
G

Guest

If you ever got the answer to this problem please POST - I am having that exact problem.
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

User submitted from AEWNET (http://www.aewnet.com/)
 
G

Guest

If anyone has the answer to this problem, I would really appreciate it if you could post it here as I am fighting with this problem and am definately not winning.
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

User submitted from AEWNET (http://www.aewnet.com/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top