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

Faxing from ASP.NET page using faxlibcom

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/de...et_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

Jul 21 '05 #1
4 2185
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/de...et_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/)
Jul 21 '05 #2
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/de...et_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/)
Jul 21 '05 #3
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/de...et_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/)
Jul 21 '05 #4
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/de...et_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/)
Jul 21 '05 #5

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

Similar topics

4
by: Bob | last post by:
I was wondering what would be the easiest way to fax a document from within a Windows .NET application. It's not enough to simple print to a fax service device. I want to be able to pass the fax...
2
by: Joan | last post by:
Hi all I want to send a fax with WebService in vb.net; I use this code to send a fax with FaxService in Windows XP Dim FXServ As New FAXCOMLib.FaxServe Dim FXDoc As FAXCOMLib.FaxDo Dim iFaxJob...
0
by: dwadley | last post by:
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...
4
by: Bob | last post by:
I was wondering what would be the easiest way to fax a document from within a Windows .NET application. It's not enough to simple print to a fax service device. I want to be able to pass the fax...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.