Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: 80070020 Error Using CDONTS on Windows 2000


Message #1 by "Eric Anderson" <eanderso@b...> on Wed, 14 Nov 2001 15:00:00
I am experiencing a very unusual error when generating mail messages with 

ASP running on a Windows 2000 server using CDONTS.  The error message 

is '80070020'.  It occurs when trying to send 2 messages very close 

together.  For example, the 'submit' button is clicked on an input form, 

and that same form is submitted again within 10 or 15 seconds.  The first 

submit works fine, the second generates the error.  If I wait a minute or 

so and resubmit, it again works fine.  Researching this problem at 

Micorosft's web site leads to the conclusion that this was a known problem 

in earlier versions of the CDONTS.dll that was delivered with NT4/IIS4.  

The error indicates that you are trying to creat a file with a duplicate 

file name or you are trying to open a file with an ADO connection that is 

already open.  It is almost like the SMTP queue is not emptying out fast 

enough.  What makes this problem even more maddening is that I have a test 

machine running Windows 2000 Professional with the same service packs and 

DLL and the code runs perfectly every time.  I would appreciate any 

suggestions on how to debug this problem.



Eric Anderson
Message #2 by "Patrick Frenette" <patrick.frenette@s...> on Thu, 15 Nov 2001 12:50:19
Hi there,



I would suggest you, if you are on windows 2000, to use the CDO.DLL. It is 

the latest object for emaail managment and is more stable. Also, this is 

the object that is going to be supported from now on at Microsoft.



Patrick Frenette

Research Center for Geomatics



> I am experiencing a very unusual error when generating mail messages 

with 

> ASP running on a Windows 2000 server using CDONTS.  The error message 

> is '80070020'.  It occurs when trying to send 2 messages very close 

> together.  For example, the 'submit' button is clicked on an input form, 

> and that same form is submitted again within 10 or 15 seconds.  The 

first 

> submit works fine, the second generates the error.  If I wait a minute 

or 

> so and resubmit, it again works fine.  Researching this problem at 

> Micorosft's web site leads to the conclusion that this was a known 

problem 

> in earlier versions of the CDONTS.dll that was delivered with NT4/IIS4.  

> The error indicates that you are trying to creat a file with a duplicate 

> file name or you are trying to open a file with an ADO connection that 

is 

> already open.  It is almost like the SMTP queue is not emptying out fast 

> enough.  What makes this problem even more maddening is that I have a 

test 

> machine running Windows 2000 Professional with the same service packs 

and 

> DLL and the code runs perfectly every time.  I would appreciate any 

> suggestions on how to debug this problem.

> 

> Eric Anderson
Message #3 by "Siegfried Weber" <sweber@c...> on Thu, 15 Nov 2001 14:57:32 +0100
Just a quick heads-up:



CDO.DLL is CDO 1.21 which is based on Extended MAPI. The only supported

way to get it is installing one of the following products:



Outlook 98, 2000, 2002 - the first two: only in Corporate or Workgroup

Mode), the latter two: only if you do a custom install



Exchange 5.5 Server, Exchange 2000 Server



If you want to send simple SMTP mail either CDONTS (CDO for Windows NT

Server: comes with Windows NT 4 Server Option Pack SMTP Service and

Windows 2000 IIS5 SMTP Service) or CDOSYS (CDO for Windows 2000: comes

with Windows 2000 Server & Professional and Windows XP Professional).



CDONTS is still fully supported on the platforms it is shipping with,

although it is no longer included with Windows XP and Windows .NET

Server.



I do /not/ recommend using CDO 1.21 if you just need to send SMTP mail.

It is neither documented nor supported with CDO 1.21.



<Siegfried />



> -----Original Message-----

> From: Patrick Frenette [mailto:patrick.frenette@s...]

> Sent: Thursday, November 15, 2001 1:50 PM

> To: ASP CDO

> Subject: [asp_cdo] Re: 80070020 Error Using CDONTS on Windows 2000

>

> Hi there,

>

> I would suggest you, if you are on windows 2000, to use the CDO.DLL.

It is

> the latest object for emaail managment and is more stable. Also, this

is

> the object that is going to be supported from now on at Microsoft.

>

> Patrick Frenette

> Research Center for Geomatics

>

> > I am experiencing a very unusual error when generating mail messages

> with

> > ASP running on a Windows 2000 server using CDONTS.  The error

message

> > is '80070020'.  It occurs when trying to send 2 messages very close

> > together.  For example, the 'submit' button is clicked on an input

form,

> > and that same form is submitted again within 10 or 15 seconds.  The

> first

> > submit works fine, the second generates the error.  If I wait a

minute

> or

> > so and resubmit, it again works fine.  Researching this problem at

> > Micorosft's web site leads to the conclusion that this was a known

> problem

> > in earlier versions of the CDONTS.dll that was delivered with

NT4/IIS4.

> > The error indicates that you are trying to creat a file with a

duplicate

> > file name or you are trying to open a file with an ADO connection

that

> is

> > already open.  It is almost like the SMTP queue is not emptying out

fast

> > enough.  What makes this problem even more maddening is that I have

a

> test

> > machine running Windows 2000 Professional with the same service

packs

> and

> > DLL and the code runs perfectly every time.  I would appreciate any

> > suggestions on how to debug this problem.

> >

> > Eric Anderson

>




$subst('Email.Unsub')



Message #4 by "Eric Anderson" <eanderso@b...> on Thu, 15 Nov 2001 21:26:37
Thanks for the info but the choice of CDOSYS or CDONTS makes no difference 

in the behavior.  When sending 2 e-mail messages back-to-back the second 

one generates the error message.  It appears as though it is a file locked 

or file sharing error.  Some process is tying up the \pickup directory and 

until it is released the second message will not be accepted.  Again, the 

same script on a Windows 2000 Professional computer works without a 

problem.  What services run on Windows 2000 server that don't run on 

Professional?  DNS?  Active Directory?  And what would they be doing that 

would tie up that resource?  Thanks again for your help.



Eric Anderson

North Star Navigators



> Hi there,

> 

> I would suggest you, if you are on windows 2000, to use the CDO.DLL. It 

is 

> the latest object for emaail managment and is more stable. Also, this is 

> the object that is going to be supported from now on at Microsoft.

> 

> Patrick Frenette

> Research Center for Geomatics

> 

> > I am experiencing a very unusual error when generating mail messages 

> with 

> > ASP running on a Windows 2000 server using CDONTS.  The error message 

> > is '80070020'.  It occurs when trying to send 2 messages very close 

> > together.  For example, the 'submit' button is clicked on an input 

form, 

> > and that same form is submitted again within 10 or 15 seconds.  The 

> first 

> > submit works fine, the second generates the error.  If I wait a minute 

> or 

> > so and resubmit, it again works fine.  Researching this problem at 

> > Micorosft's web site leads to the conclusion that this was a known 

> problem 

> > in earlier versions of the CDONTS.dll that was delivered with 

NT4/IIS4.  

> > The error indicates that you are trying to creat a file with a 

duplicate 

> > file name or you are trying to open a file with an ADO connection that 

> is 

> > already open.  It is almost like the SMTP queue is not emptying out 

fast 

> > enough.  What makes this problem even more maddening is that I have a 

> test 

> > machine running Windows 2000 Professional with the same service packs 

> and 

> > DLL and the code runs perfectly every time.  I would appreciate any 

> > suggestions on how to debug this problem.

> > 

> > Eric Anderson

  Return to Index