Re: Faxing from ASP.NET page using faxlibcom



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/default.asp?url=/library/en-us/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/)
.



Relevant Pages

  • Faxing from ASP.NET page using faxlibcom
    ... I have a windows 2003 box and a windows xp client. ... Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal ... Dim strComputer As String ... Dim oFaxDoc As FAXCOMLib.FaxDoc ...
    (microsoft.public.dotnet.general)
  • Sorting - VBA
    ... Sub SortColumn(strSheetName As String, strColumnLetter As String) ... Dim strColumnRange As String ... Dim rngCurrentCell As Range ... This sorts a column perfectly. ...
    (microsoft.public.excel.programming)
  • Re: Faxing from ASP.NET page using faxlibcom
    ... > I tried impersonating I tried weak accounts SYSTEM all sorts of things. ... > Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal ... > Dim strComputer As String ... > Dim oFaxDoc As FAXCOMLib.FaxDoc ...
    (microsoft.public.dotnet.general)
  • Re: Faxing from ASP.NET page using faxlibcom
    ... > I tried impersonating I tried weak accounts SYSTEM all sorts of things. ... > Sub Sendfax(ByVal strTo As String, ByVal strFrom As String, ByVal ... > Dim strComputer As String ... > Dim oFaxDoc As FAXCOMLib.FaxDoc ...
    (microsoft.public.dotnet.general)
  • Re: Sorting of Sorts
    ... Here's one of the quickest BASIC sorts I've seen. ... Sub HuthSortAs String) ... Dim compare As String, holdd As String ... Dim low As Long, hi As Long, md As Long ...
    (microsoft.public.vb.general.discussion)