Re: CDONTS.Send ignored
Thanks, Ray.
The approach you are describing in that many words is well known as "Problem
Isolation" and of course, I have tried it while waiting comments from
colleagues in here.
CDONTS usage is well documented. I cut and pasted an example and run it
alone without any databases you mention - same result. Same about
Microsoft.XMLDO M
I do not think I need to post these examples for discussions in here, don't
I?
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eG3sY$U1DH A.1264@TK2MSFTN GP11.phx.gbl...[color=blue]
> In order to help with this issue, you'd have to do some of your own[/color]
testing[color=blue]
> and debugging first. You said that you lots of lines of code in this[/color]
page.[color=blue]
> Chances are that 99% of it is irrelevant to your problem here. What steps
> have you taken to debug this? Have you thrown together a simple four line
> asp page that creates this object and executes the save method with some
> test data? You need to be able to mentally extract where the problem is[/color]
and[color=blue]
> work with that all on its own. If you have an asp page that collects form
> values, does some arithmetic operations on them, inserts the results into[/color]
a[color=blue]
> database, e-mails the results to a recipient, generates a log file with[/color]
the[color=blue]
> FSO, executes a shell command, and generates a pdf and the file is not[/color]
being[color=blue]
> created by the FSO (or whatever you're using), what you'd want to do is
> totally disregard all the other steps and just create a nice simple page
> that runs the same FSO commands with manually entered text. I don't know
> that I'm explaining this well, but it's hard to explain the steps to take[/color]
to[color=blue]
> debug something. YOu just have to sit back and think about it for a bit[/color]
and[color=blue]
> narrow down where the issue may be occurring and what the possible causes
> are. You won't be able to do this if you look at 1000 lines of code and
> think of it as just one step.
>
> Ray at work
>
> <aa> wrote in message news:%23PwXB5U1 DHA.2528@TK2MSF TNGP10.phx.gbl. ..[color=green]
> > I did and it made no difference
> >
> > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
> > news:O7DARxU1DH A.2412@TK2MSFTN GP10.phx.gbl...[color=darkred]
> > > I stress that you really need to take out your On Error Resume Next
> > > statement (or move it around to different locations as needed)[/color][/color][/color]
whenever[color=blue][color=green][color=darkred]
> > > you're trying to debug something.
> > >
> > > Ray at work
> > >
> > > <aa> wrote in message news:uo%23bkuU1 DHA.560@TK2MSFT NGP11.phx.gbl.. .
> > > > I have it indeed, but next to it goes
> > > >
> > > > If err.number <> 0 then
> > > > Response.write( "Errors occurred while saving your form
> > > > submission.")
> > > > Else
> > > > Response.write "The Order has been saved to " & fPath &". <a
> > > > href=/data/orders/" & fName &
> > > > ".xml><br/>View the Order as an XML file</a><p/>"
> > > > End If
> > > >
> > > > So I understand that I should have "Errors occurred while saving[/color][/color][/color]
your[color=blue][color=green]
> > form[color=darkred]
> > > > submission."
> > > > But I do have "The Order has been saved to" which means that[/color][/color]
> err.number[color=green][color=darkred]
> > > <>
> > > > 0
> > > > Yet no file was created
> > > >
> > > > But I was wrong in my previous message blaming FileSystemObjec t.
> > > > The file in question is supposed to be created by Microsoft.XMLDO M[/color]
> > object[color=darkred]
> > > > and
> > > > "ON ERROR RESUME NEXT" goes after
> > > > Set objDom = Server.CreateOb ject("Microsoft .XMLDOM")
> > > > some manipulations to form a file name and the path to place it[/color][/color][/color]
into[color=blue][color=green][color=darkred]
> > > > objDom.Save (path and file name)
> > > >
> > > > I stress, that it worked previously on ISP w2000 server and still[/color][/color]
> works[color=green]
> > on[color=darkred]
> > > > my local w2000
> > > >
> > > >
> > > >
> > > >
> > > > "Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
> > > > news:ux9KxLU1DH A.2972@TK2MSFTN GP09.phx.gbl...
> > > > > You don't have an ON ERROR RESUME NEXT do you?
> > > > >
> > > > > --
> > > > > Curt Christianson
> > > > > Owner/Lead Developer, DF-Software
> > > > > www.Darkfalz.com
> > > > >
> > > > >
> > > > > <aa> wrote in message[/color][/color]
> news:%23o9rEIU1 DHA.1740@TK2MSF TNGP09.phx.gbl. ..[color=green][color=darkred]
> > > > > > It might be relevant - I've just discovered that the[/color]
> > FileSystemObjec t[color=darkred]
> > > on
> > > > > the
> > > > > > same w2k ISP server behaves the same way as CDONTS - produces no[/color]
> > error[color=darkred]
> > > > and
> > > > > > no result as if it is ignored.
> > > > > > It is supposed to create a file on the server, and although the[/color][/color]
> code[color=green][color=darkred]
> > > > runs
> > > > > > without producing error messages, no file is created. It[/color][/color][/color]
obviously[color=blue][color=green][color=darkred]
> > > > worked
> > > > > > earlier and I still have several files streated previously.
> > > > > >
> > > > > > Is FileSystemObjec t, like CDONTS, also dependent on some other
> > > service
> > > > > > which might be disabled?
> > > > > >
> > > > > >
> > > > > >
> > > > > > <aa> wrote in message[/color]
> > news:%235DM1aS1 DHA.4064@tk2msf tngp13.phx.gbl. ..[color=darkred]
> > > > > > > I did a working code with CDONTS on NT4
> > > > > > > Now I am testing is on w2k and it looks like objCDONTS.Send is
> > > > > completely
> > > > > > > ignored.
> > > > > > >
> > > > > > > I think is it ignored because it throws no errors, neither[/color][/color][/color]
does[color=blue][color=green]
> > the[color=darkred]
> > > > rest
> > > > > > of
> > > > > > > the code setting
> > > > > > > objCDONTS=Serve r.CreateObject( "CDONTS.NewMail ") and then
> > > manipulating
> > > > > its
> > > > > > > properties.
> > > > > > >
> > > > > > > Do I need to somehow set IIS5 to make objCDONTS.Send work?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]
Thanks, Ray.
The approach you are describing in that many words is well known as "Problem
Isolation" and of course, I have tried it while waiting comments from
colleagues in here.
CDONTS usage is well documented. I cut and pasted an example and run it
alone without any databases you mention - same result. Same about
Microsoft.XMLDO M
I do not think I need to post these examples for discussions in here, don't
I?
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:eG3sY$U1DH A.1264@TK2MSFTN GP11.phx.gbl...[color=blue]
> In order to help with this issue, you'd have to do some of your own[/color]
testing[color=blue]
> and debugging first. You said that you lots of lines of code in this[/color]
page.[color=blue]
> Chances are that 99% of it is irrelevant to your problem here. What steps
> have you taken to debug this? Have you thrown together a simple four line
> asp page that creates this object and executes the save method with some
> test data? You need to be able to mentally extract where the problem is[/color]
and[color=blue]
> work with that all on its own. If you have an asp page that collects form
> values, does some arithmetic operations on them, inserts the results into[/color]
a[color=blue]
> database, e-mails the results to a recipient, generates a log file with[/color]
the[color=blue]
> FSO, executes a shell command, and generates a pdf and the file is not[/color]
being[color=blue]
> created by the FSO (or whatever you're using), what you'd want to do is
> totally disregard all the other steps and just create a nice simple page
> that runs the same FSO commands with manually entered text. I don't know
> that I'm explaining this well, but it's hard to explain the steps to take[/color]
to[color=blue]
> debug something. YOu just have to sit back and think about it for a bit[/color]
and[color=blue]
> narrow down where the issue may be occurring and what the possible causes
> are. You won't be able to do this if you look at 1000 lines of code and
> think of it as just one step.
>
> Ray at work
>
> <aa> wrote in message news:%23PwXB5U1 DHA.2528@TK2MSF TNGP10.phx.gbl. ..[color=green]
> > I did and it made no difference
> >
> > "Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
> > news:O7DARxU1DH A.2412@TK2MSFTN GP10.phx.gbl...[color=darkred]
> > > I stress that you really need to take out your On Error Resume Next
> > > statement (or move it around to different locations as needed)[/color][/color][/color]
whenever[color=blue][color=green][color=darkred]
> > > you're trying to debug something.
> > >
> > > Ray at work
> > >
> > > <aa> wrote in message news:uo%23bkuU1 DHA.560@TK2MSFT NGP11.phx.gbl.. .
> > > > I have it indeed, but next to it goes
> > > >
> > > > If err.number <> 0 then
> > > > Response.write( "Errors occurred while saving your form
> > > > submission.")
> > > > Else
> > > > Response.write "The Order has been saved to " & fPath &". <a
> > > > href=/data/orders/" & fName &
> > > > ".xml><br/>View the Order as an XML file</a><p/>"
> > > > End If
> > > >
> > > > So I understand that I should have "Errors occurred while saving[/color][/color][/color]
your[color=blue][color=green]
> > form[color=darkred]
> > > > submission."
> > > > But I do have "The Order has been saved to" which means that[/color][/color]
> err.number[color=green][color=darkred]
> > > <>
> > > > 0
> > > > Yet no file was created
> > > >
> > > > But I was wrong in my previous message blaming FileSystemObjec t.
> > > > The file in question is supposed to be created by Microsoft.XMLDO M[/color]
> > object[color=darkred]
> > > > and
> > > > "ON ERROR RESUME NEXT" goes after
> > > > Set objDom = Server.CreateOb ject("Microsoft .XMLDOM")
> > > > some manipulations to form a file name and the path to place it[/color][/color][/color]
into[color=blue][color=green][color=darkred]
> > > > objDom.Save (path and file name)
> > > >
> > > > I stress, that it worked previously on ISP w2000 server and still[/color][/color]
> works[color=green]
> > on[color=darkred]
> > > > my local w2000
> > > >
> > > >
> > > >
> > > >
> > > > "Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
> > > > news:ux9KxLU1DH A.2972@TK2MSFTN GP09.phx.gbl...
> > > > > You don't have an ON ERROR RESUME NEXT do you?
> > > > >
> > > > > --
> > > > > Curt Christianson
> > > > > Owner/Lead Developer, DF-Software
> > > > > www.Darkfalz.com
> > > > >
> > > > >
> > > > > <aa> wrote in message[/color][/color]
> news:%23o9rEIU1 DHA.1740@TK2MSF TNGP09.phx.gbl. ..[color=green][color=darkred]
> > > > > > It might be relevant - I've just discovered that the[/color]
> > FileSystemObjec t[color=darkred]
> > > on
> > > > > the
> > > > > > same w2k ISP server behaves the same way as CDONTS - produces no[/color]
> > error[color=darkred]
> > > > and
> > > > > > no result as if it is ignored.
> > > > > > It is supposed to create a file on the server, and although the[/color][/color]
> code[color=green][color=darkred]
> > > > runs
> > > > > > without producing error messages, no file is created. It[/color][/color][/color]
obviously[color=blue][color=green][color=darkred]
> > > > worked
> > > > > > earlier and I still have several files streated previously.
> > > > > >
> > > > > > Is FileSystemObjec t, like CDONTS, also dependent on some other
> > > service
> > > > > > which might be disabled?
> > > > > >
> > > > > >
> > > > > >
> > > > > > <aa> wrote in message[/color]
> > news:%235DM1aS1 DHA.4064@tk2msf tngp13.phx.gbl. ..[color=darkred]
> > > > > > > I did a working code with CDONTS on NT4
> > > > > > > Now I am testing is on w2k and it looks like objCDONTS.Send is
> > > > > completely
> > > > > > > ignored.
> > > > > > >
> > > > > > > I think is it ignored because it throws no errors, neither[/color][/color][/color]
does[color=blue][color=green]
> > the[color=darkred]
> > > > rest
> > > > > > of
> > > > > > > the code setting
> > > > > > > objCDONTS=Serve r.CreateObject( "CDONTS.NewMail ") and then
> > > manipulating
> > > > > its
> > > > > > > properties.
> > > > > > >
> > > > > > > Do I need to somehow set IIS5 to make objCDONTS.Send work?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]
Comment