Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Error in cdonts


Message #1 by "Ling" <linglp@c...> on Wed, 25 Apr 2001 10:54:15
Hi



I encounter such error when emails send concurrently at the same time. See 

the error below



Code: 32L

Name: ERROR_SHARING_VIOLATION

The process cannot access the file because it is being used by another 

process. 





According to microsoft, this is cause of it;

When you use CDONTS to send messages, the messages are converted to files. 

These files are stored in a folder until they are transferred using the 

Simple Mail Transfer Protocol (SMTP). The names of these files are based 

on the current system time. If more than one message is sent during the 

same clock cycle, both files are given the same name. When this occurs, 

the Send method returns the error code described above.



When you use CDONTS to send a large number of messages using multiple 

threads, it is more likely that multiple messages will be sent during the 

same clock cycle. This behavior is commonly observed with ASP pages.



Under certain circumstances, creating multiple files with the same name 

may cause one or more messages to be overwritten. When this occurs, the 

messages that are overwritten are not delivered. 



----

The solution to it, is to , obtain the latest service pack for Exchange 

Server version 5.5. 



However the problem still exist. If anyone know, where can I find the 

folder that store the temp file. Or any solution to it.



Thanks.












  Return to Index