Re: Faxing from ASP.NET page using faxlibcom
- From: Guest <Guest@xxxxxxxxxxxxxx>
- Date: Sat, 09 Apr 2005 12:04:07 -0700
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/)
.
- Prev by Date: Re: Faxing from ASP.NET page using faxlibcom
- Next by Date: Re: Version error
- Previous by thread: Re: Faxing from ASP.NET page using faxlibcom
- Index(es):
Relevant Pages
|