FaxcomLib and asp.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ponty

    #1

    FaxcomLib and asp.net

    HI,

    I'm trying to send a fax to our server via a .net web page, but I keep
    getting permission errors.
    The code works fine on win xp, but on 2000, i get

    System.Unauthor izedAccessExcep tion: Access is denied. at
    FAXCOMLib.IFaxD oc.Send() at faxtest.WebForm 1.Page_Load(Obj ect sender,
    EventArgs e)

    My code is as follows

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles MyBase.Load

    Try

    Dim oFaxServer As FAXCOMLib.FaxSe rver

    oFaxServer = New FAXCOMLib.FaxSe rver

    Dim oFaxDoc As FAXCOMLib.FaxDo c

    oFaxServer.Conn ect("web2")

    oFaxDoc = oFaxServer.Crea teDocument("C:\ test.txt")

    oFaxDoc.FaxNumb er = "********** ***"

    oFaxDoc.Display Name = "Fax Server"

    oFaxDoc.Send()

    oFaxDoc = Nothing

    oFaxServer.Disc onnect()

    oFaxServer = Nothing

    Catch ex As Exception

    Response.Write( ex.ToString)

    End Try

    End Sub

    I'm using identity impersonate, and I think this may be whats causing
    problems. I've given permissions to just about everything, but the event log
    shows that the fax has been submitted, then deleted.

    Any help would be apreciated.

    Thanks



Working...