Problem by sending a fax via ASP Application

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

    Problem by sending a fax via ASP Application

    Hi newgroup,

    i struggle with a problem with windows 2000 fax server running under my ASP
    Web application

    The sending of an fax - like the example below - works manually very well
    (with file open and print to the fax printer) - logged on as a normal user.

    But my code under ASP doesnt work (access rights for directory, to read the
    file and the fax server is given to the anonymous user)

    Here is the VB Script Code:

    Dim Faxserver
    Dim FaxDoc
    Dim JobNo
    Dim Dateiname
    Set Faxserver = Server.Createob ject("Faxserver .Faxserver")
    FaxServer.Conne ct("gericom.sbs .office")

    Filename = server.MapPath( "Orders/10173.pdf")
    Set FaxDoc = FaxServer.Creat eDocument(Filen ame)

    FaxDoc.SendCove rpage = 0
    FaxDoc.Recipien tName = "Arnold"
    FaxDoc.SenderNa me = "Peter"
    FaxDoc.FaxNumbe r = "12345678"
    FaxDoc.SenderFa x = "87654321"
    JobNo = FaxDoc.Send()
    Set FaxDoc = Nothing
    FaxServer.Disco nnect()
    Set FaxServer = Nothing

    When i start this programm, the system seams to hang and after a short time,
    there appears an error 0x8007000D (Data is invalid??) at the line
    FaxDoc.Send()

    Has anyone of you a tip for me?

    Regards Peter Haider




  • Bite My Bubbles

    #2
    Re: Problem by sending a fax via ASP Application

    what references do you have set?

    "Peter Haider" <peter.haider@d e-integro.at> wrote in message
    news:3f4f05cc$1 @e-post.inode.at.. .[color=blue]
    > Hi newgroup,
    >
    > i struggle with a problem with windows 2000 fax server running under my[/color]
    ASP[color=blue]
    > Web application
    >
    > The sending of an fax - like the example below - works manually very well
    > (with file open and print to the fax printer) - logged on as a normal[/color]
    user.[color=blue]
    >
    > But my code under ASP doesnt work (access rights for directory, to read[/color]
    the[color=blue]
    > file and the fax server is given to the anonymous user)
    >
    > Here is the VB Script Code:
    >
    > Dim Faxserver
    > Dim FaxDoc
    > Dim JobNo
    > Dim Dateiname
    > Set Faxserver = Server.Createob ject("Faxserver .Faxserver")
    > FaxServer.Conne ct("gericom.sbs .office")
    >
    > Filename = server.MapPath( "Orders/10173.pdf")
    > Set FaxDoc = FaxServer.Creat eDocument(Filen ame)
    >
    > FaxDoc.SendCove rpage = 0
    > FaxDoc.Recipien tName = "Arnold"
    > FaxDoc.SenderNa me = "Peter"
    > FaxDoc.FaxNumbe r = "12345678"
    > FaxDoc.SenderFa x = "87654321"
    > JobNo = FaxDoc.Send()
    > Set FaxDoc = Nothing
    > FaxServer.Disco nnect()
    > Set FaxServer = Nothing
    >
    > When i start this programm, the system seams to hang and after a short[/color]
    time,[color=blue]
    > there appears an error 0x8007000D (Data is invalid??) at the line
    > FaxDoc.Send()
    >
    > Has anyone of you a tip for me?
    >
    > Regards Peter Haider
    >
    >
    >
    >[/color]


    Comment

    • TomB

      #3
      Re: Problem by sending a fax via ASP Application

      Just a guess, but have you logged on as IUSR_machinenam e so that the fax
      printer is set up for that account?

      "Peter Haider" <peter.haider@d e-integro.at> wrote in message
      news:3f4f05cc$1 @e-post.inode.at.. .[color=blue]
      > Hi newgroup,
      >
      > i struggle with a problem with windows 2000 fax server running under my[/color]
      ASP[color=blue]
      > Web application
      >
      > The sending of an fax - like the example below - works manually very well
      > (with file open and print to the fax printer) - logged on as a normal[/color]
      user.[color=blue]
      >
      > But my code under ASP doesnt work (access rights for directory, to read[/color]
      the[color=blue]
      > file and the fax server is given to the anonymous user)
      >
      > Here is the VB Script Code:
      >
      > Dim Faxserver
      > Dim FaxDoc
      > Dim JobNo
      > Dim Dateiname
      > Set Faxserver = Server.Createob ject("Faxserver .Faxserver")
      > FaxServer.Conne ct("gericom.sbs .office")
      >
      > Filename = server.MapPath( "Orders/10173.pdf")
      > Set FaxDoc = FaxServer.Creat eDocument(Filen ame)
      >
      > FaxDoc.SendCove rpage = 0
      > FaxDoc.Recipien tName = "Arnold"
      > FaxDoc.SenderNa me = "Peter"
      > FaxDoc.FaxNumbe r = "12345678"
      > FaxDoc.SenderFa x = "87654321"
      > JobNo = FaxDoc.Send()
      > Set FaxDoc = Nothing
      > FaxServer.Disco nnect()
      > Set FaxServer = Nothing
      >
      > When i start this programm, the system seams to hang and after a short[/color]
      time,[color=blue]
      > there appears an error 0x8007000D (Data is invalid??) at the line
      > FaxDoc.Send()
      >
      > Has anyone of you a tip for me?
      >
      > Regards Peter Haider
      >
      >
      >
      >[/color]


      Comment

      • Peter Haider

        #4
        Re: Problem by sending a fax via ASP Application

        Fax printer is set up for this account too, my personal account has
        administrator privileges

        Regards Peter

        "TomB" <shuckle@hotmai l.com> schrieb im Newsbeitrag
        news:uUeuPejbDH A.3044@TK2MSFTN GP11.phx.gbl...[color=blue]
        > Just a guess, but have you logged on as IUSR_machinenam e so that the fax
        > printer is set up for that account?
        >
        > "Peter Haider" <peter.haider@d e-integro.at> wrote in message
        > news:3f4f05cc$1 @e-post.inode.at.. .[color=green]
        > > Hi newgroup,
        > >
        > > i struggle with a problem with windows 2000 fax server running under my[/color]
        > ASP[color=green]
        > > Web application
        > >
        > > The sending of an fax - like the example below - works manually very[/color][/color]
        well[color=blue][color=green]
        > > (with file open and print to the fax printer) - logged on as a normal[/color]
        > user.[color=green]
        > >
        > > But my code under ASP doesnt work (access rights for directory, to read[/color]
        > the[color=green]
        > > file and the fax server is given to the anonymous user)
        > >
        > > Here is the VB Script Code:
        > >
        > > Dim Faxserver
        > > Dim FaxDoc
        > > Dim JobNo
        > > Dim Dateiname
        > > Set Faxserver = Server.Createob ject("Faxserver .Faxserver")
        > > FaxServer.Conne ct("gericom.sbs .office")
        > >
        > > Filename = server.MapPath( "Orders/10173.pdf")
        > > Set FaxDoc = FaxServer.Creat eDocument(Filen ame)
        > >
        > > FaxDoc.SendCove rpage = 0
        > > FaxDoc.Recipien tName = "Arnold"
        > > FaxDoc.SenderNa me = "Peter"
        > > FaxDoc.FaxNumbe r = "12345678"
        > > FaxDoc.SenderFa x = "87654321"
        > > JobNo = FaxDoc.Send()
        > > Set FaxDoc = Nothing
        > > FaxServer.Disco nnect()
        > > Set FaxServer = Nothing
        > >
        > > When i start this programm, the system seams to hang and after a short[/color]
        > time,[color=green]
        > > there appears an error 0x8007000D (Data is invalid??) at the line
        > > FaxDoc.Send()
        > >
        > > Has anyone of you a tip for me?
        > >
        > > Regards Peter Haider
        > >
        > >
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • smilesmita
          New Member
          • Jul 2006
          • 1

          #5
          Hi there,
          I was reading your thread of having error on Fax.Send() and i am havign the same error.Your thread dint really reach till a solution and i wanted to ask you if you found a solution to this problem.
          Please do let me know the solution and that wioll be really helpfull!

          Thanks
          S

          Comment

          Working...