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.Createobject("Faxserver.Faxserver")
FaxServer.Connect("gericom.sbs.office")
Filename = server.MapPath("Orders/10173.pdf")
Set FaxDoc = FaxServer.CreateDocument(Filename)
FaxDoc.SendCoverpage = 0
FaxDoc.RecipientName = "Arnold"
FaxDoc.SenderName = "Peter"
FaxDoc.FaxNumber = "12345678"
FaxDoc.SenderFax = "87654321"
JobNo = FaxDoc.Send()
Set FaxDoc = Nothing
FaxServer.Disconnect()
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 4 3909
what references do you have set?
"Peter Haider" <pe**********@de-integro.at> wrote in message
news:3f********@e-post.inode.at... 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.Createobject("Faxserver.Faxserver") FaxServer.Connect("gericom.sbs.office")
Filename = server.MapPath("Orders/10173.pdf") Set FaxDoc = FaxServer.CreateDocument(Filename)
FaxDoc.SendCoverpage = 0 FaxDoc.RecipientName = "Arnold" FaxDoc.SenderName = "Peter" FaxDoc.FaxNumber = "12345678" FaxDoc.SenderFax = "87654321" JobNo = FaxDoc.Send() Set FaxDoc = Nothing FaxServer.Disconnect() 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
Just a guess, but have you logged on as IUSR_machinename so that the fax
printer is set up for that account?
"Peter Haider" <pe**********@de-integro.at> wrote in message
news:3f********@e-post.inode.at... 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.Createobject("Faxserver.Faxserver") FaxServer.Connect("gericom.sbs.office")
Filename = server.MapPath("Orders/10173.pdf") Set FaxDoc = FaxServer.CreateDocument(Filename)
FaxDoc.SendCoverpage = 0 FaxDoc.RecipientName = "Arnold" FaxDoc.SenderName = "Peter" FaxDoc.FaxNumber = "12345678" FaxDoc.SenderFax = "87654321" JobNo = FaxDoc.Send() Set FaxDoc = Nothing FaxServer.Disconnect() 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
Fax printer is set up for this account too, my personal account has
administrator privileges
Regards Peter
"TomB" <sh*****@hotmail.com> schrieb im Newsbeitrag
news:uU**************@TK2MSFTNGP11.phx.gbl... Just a guess, but have you logged on as IUSR_machinename so that the fax printer is set up for that account?
"Peter Haider" <pe**********@de-integro.at> wrote in message news:3f********@e-post.inode.at... 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.Createobject("Faxserver.Faxserver") FaxServer.Connect("gericom.sbs.office")
Filename = server.MapPath("Orders/10173.pdf") Set FaxDoc = FaxServer.CreateDocument(Filename)
FaxDoc.SendCoverpage = 0 FaxDoc.RecipientName = "Arnold" FaxDoc.SenderName = "Peter" FaxDoc.FaxNumber = "12345678" FaxDoc.SenderFax = "87654321" JobNo = FaxDoc.Send() Set FaxDoc = Nothing FaxServer.Disconnect() 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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: cxw0106 |
last post by:
Hello,
I have some weird problem with the FileSystemWatcher. I have developed
an application that monitors a network directory for file changes of a
certain file type. The program runs well for...
|
by: Fabio Papa |
last post by:
I am trying to write a windows service that sends emails to clients at
specific times based on information in a sql db. Since this is done for
multiple cities, I start a thread for each city and...
|
by: TattyMane bigpond.net.au> |
last post by:
I have a web application that collects user input on a page. This is then
processed separately in a class. I want to return the values created in the
class to another web page. I can get this to...
|
by: Lau |
last post by:
I need to send 1000 emails from an asp.net website.
Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP
server.
But the large amount of emails results in a timeout. My server...
|
by: ASP newbie |
last post by:
I cannot run my asp.net application in w2k server.
But the program works fine under w2k professional.
Can anyone tell me is there any difference in the settings?
Many thanks.
|
by: Vishal |
last post by:
Hello,
I already asked this question in the ASP.NET forums,
but no help came. So I am hoping that somebody can help me
out. This is really very URGENT me.
For my e-commerce application, I...
|
by: Andrea |
last post by:
Hi
I've having a very strange problem using the SendInput API to send
text to other applications.
I've written the code and it seems to work well. I discovered a
strange problem: when I try to...
|
by: darthghandi |
last post by:
I am trying to create a server application using asynchronous
sockets. I run into a problem when I try to connect to my server
using a non-.net program. I can establish the connection, and send...
|
by: senthurganesh |
last post by:
Hai Am Developing SMS Sending Application using C#.Net.
MY Problem Is Sending SMS via COM3.But It Throw Different Exception .
Till Now Am Didn't Face That Problem.
Am Connect The Mobile...
|
by: tdw |
last post by:
Hi all,
I am trying to add a feature to our database that automates sending emails.
When entering a new order, I want the option to send an email to the company the order came from, attaching a...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
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...
| |