Connecting Tech Pros Worldwide Forums | Help | Site Map

CDO Error

Nate
Guest
 
Posts: n/a
#1: Oct 24 '07
I have the following ASP code on a simple "experimental" page:

<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="f...@blah.com"
myMail.To="t...@blah.com"
myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/sendusing")=2
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserver")="172.30.8.51"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserverport")=25
mymail.configuration.fields.update
myMail.Send
set myMail=nothing
%>


When attempting to hit this page, I receive:


CDO.Message.1 error '80070005'


Access is denied.


/experiments/emailtest.asp, line 6


I ran LogMon, and found the following error whenever I hit the page:
4:49:37 PM w3wp.exe:2992 OPEN D:\CIC ACCESS DENIED NT
AUTHORITY
\NETWORK SERVICE


I've tried adding the network service user to D:\CIC, but the same
error persists.


Any ideas?


Anthony Jones
Guest
 
Posts: n/a
#2: Oct 24 '07

re: CDO Error


"Nate" <nate.borland@westecnow.comwrote in message
news:1193259624.787522.15940@q3g2000prf.googlegrou ps.com...
Quote:
I have the following ASP code on a simple "experimental" page:
>
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="f...@blah.com"
myMail.To="t...@blah.com"
myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/sendusing")=2
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserver")="172.30.8.51"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserverport")=25
mymail.configuration.fields.update
myMail.Send
set myMail=nothing
%>
>
>
When attempting to hit this page, I receive:
>
>
CDO.Message.1 error '80070005'
>
>
Access is denied.
>
>
/experiments/emailtest.asp, line 6
>
>
I ran LogMon, and found the following error whenever I hit the page:
4:49:37 PM w3wp.exe:2992 OPEN D:\CIC ACCESS DENIED NT
AUTHORITY
\NETWORK SERVICE
>
>
I've tried adding the network service user to D:\CIC, but the same
error persists.
>
Did you grant read/write access?
What is D:\CIC anyway, a folder or root of the website?
Is this code running on CIC?
If you visit http://cic/targeted/results.asp with a browser does it work?
Do you have ASP debugging turned on?

Having asked that lot, CreateMHTMLBody isn't a safe thing to using in ASP.
Ultimately it will use the WinINet API which is designed to be used by a
client. If you have many such requests running at the same time all sorts
of undesirable things can happen.

--
Anthony Jones - MVP ASP/ASP.NET


Nate
Guest
 
Posts: n/a
#3: Oct 25 '07

re: CDO Error


On Oct 24, 4:32 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
Quote:
"Nate" <nate.borl...@westecnow.comwrote in message
>
news:1193259624.787522.15940@q3g2000prf.googlegrou ps.com...
>
>
>
>
>
Quote:
I have the following ASP code on a simple "experimental" page:
>
Quote:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="f...@blah.com"
myMail.To="t...@blah.com"
myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/sendusing")=2
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserver")="172.30.8.51"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserverport")=25
mymail.configuration.fields.update
myMail.Send
set myMail=nothing
%>
>
Quote:
When attempting to hit this page, I receive:
>
Quote:
CDO.Message.1 error '80070005'
>
Quote:
Access is denied.
>
Quote:
/experiments/emailtest.asp, line 6
>
Quote:
I ran LogMon, and found the following error whenever I hit the page:
4:49:37 PM w3wp.exe:2992 OPEN D:\CIC ACCESS DENIED NT
AUTHORITY
\NETWORK SERVICE
>
Quote:
I've tried adding the network service user to D:\CIC, but the same
error persists.
>
Did you grant read/write access?
What is D:\CIC anyway, a folder or root of the website?
Is this code running on CIC?
If you visithttp://cic/targeted/results.aspwith a browser does it work?
Do you have ASP debugging turned on?
>
Having asked that lot, CreateMHTMLBody isn't a safe thing to using in ASP.
Ultimately it will use the WinINet API which is designed to be used by a
client. If you have many such requests running at the same time all sorts
of undesirable things can happen.
>
--
Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -
>
- Show quoted text -
Thanks for the response, Anthony.

Read and write access (even full access) was tested and failed. D:\CIC
is the root of the site on the server. Yes, the code is running on
CIC. Yes, the page works properly. I may not have had ASP debugging
turned on, but will try again.


Nate
Guest
 
Posts: n/a
#4: Oct 25 '07

re: CDO Error


On Oct 24, 6:48 pm, Nate <nate.borl...@westecnow.comwrote:
Quote:
On Oct 24, 4:32 pm, "Anthony Jones" <A...@yadayadayada.comwrote:
>
>
>
>
>
Quote:
"Nate" <nate.borl...@westecnow.comwrote in message
>
Quote:
news:1193259624.787522.15940@q3g2000prf.googlegrou ps.com...
>
Quote:
Quote:
I have the following ASP code on a simple "experimental" page:
>
Quote:
Quote:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="f...@blah.com"
myMail.To="t...@blah.com"
myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/sendusing")=2
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserver")="172.30.8.51"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserverport")=25
mymail.configuration.fields.update
myMail.Send
set myMail=nothing
%>
>
Quote:
Quote:
When attempting to hit this page, I receive:
>
Quote:
Quote:
CDO.Message.1 error '80070005'
>
Quote:
Quote:
Access is denied.
>
Quote:
Quote:
/experiments/emailtest.asp, line 6
>
Quote:
Quote:
I ran LogMon, and found the following error whenever I hit the page:
4:49:37 PM w3wp.exe:2992 OPEN D:\CIC ACCESS DENIED NT
AUTHORITY
\NETWORK SERVICE
>
Quote:
Quote:
I've tried adding the network service user to D:\CIC, but the same
error persists.
>
Quote:
Did you grant read/write access?
What is D:\CIC anyway, a folder or root of the website?
Is this code running on CIC?
If you visithttp://cic/targeted/results.aspwitha browser does it work?
Do you have ASP debugging turned on?
>
Quote:
Having asked that lot, CreateMHTMLBody isn't a safe thing to using in ASP.
Ultimately it will use the WinINet API which is designed to be used by a
client. If you have many such requests running at the same time all sorts
of undesirable things can happen.
>
Quote:
--
Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -
>
Quote:
- Show quoted text -
>
Thanks for the response, Anthony.
>
Read and write access (even full access) was tested and failed. D:\CIC
is the root of the site on the server. Yes, the code is running on
CIC. Yes, the page works properly. I may not have had ASP debugging
turned on, but will try again.- Hide quoted text -
>
- Show quoted text -
Yes, debugged was enabled.

Anthony Jones
Guest
 
Posts: n/a
#5: Oct 25 '07

re: CDO Error


"Nate" <nate.borland@westecnow.comwrote in message
news:1193269925.442284.128000@e9g2000prf.googlegro ups.com...
Quote:
On Oct 24, 6:48 pm, Nate <nate.borl...@westecnow.comwrote:
Quote:
On Oct 24, 4:32 pm, "Anthony Jones" <A...@yadayadayada.comwrote:




Quote:
"Nate" <nate.borl...@westecnow.comwrote in message
Quote:
>news:1193259624.787522.15940@q3g2000prf.googlegro ups.com...
Quote:
I have the following ASP code on a simple "experimental" page:
Quote:
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="f...@blah.com"
myMail.To="t...@blah.com"
myMail.CreateMHTMLBody "http://cic/targeted/results.asp"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/sendusing")=2
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserver")="172.30.8.51"
mymail.configuration.fields.item("http://schemas.microsoft.com/cdo/
configuration/smtpserverport")=25
mymail.configuration.fields.update
myMail.Send
set myMail=nothing
%>
Quote:
When attempting to hit this page, I receive:
Quote:
CDO.Message.1 error '80070005'
Quote:
Access is denied.
Quote:
/experiments/emailtest.asp, line 6
Quote:
I ran LogMon, and found the following error whenever I hit the page:
4:49:37 PM w3wp.exe:2992 OPEN D:\CIC ACCESS DENIED NT
AUTHORITY
\NETWORK SERVICE
Quote:
I've tried adding the network service user to D:\CIC, but the same
error persists.
Quote:
Did you grant read/write access?
What is D:\CIC anyway, a folder or root of the website?
Is this code running on CIC?
If you visithttp://cic/targeted/results.aspwitha browser does it work?
Do you have ASP debugging turned on?
Quote:
Having asked that lot, CreateMHTMLBody isn't a safe thing to using in
ASP.
Quote:
Quote:
Quote:
Ultimately it will use the WinINet API which is designed to be used by
a
Quote:
Quote:
Quote:
client. If you have many such requests running at the same time all
sorts
Quote:
Quote:
Quote:
of undesirable things can happen.
Quote:
--
Anthony Jones - MVP ASP/ASP.NET- Hide quoted text -
Quote:
- Show quoted text -
Thanks for the response, Anthony.

Read and write access (even full access) was tested and failed. D:\CIC
is the root of the site on the server. Yes, the code is running on
CIC. Yes, the page works properly. I may not have had ASP debugging
turned on, but will try again.- Hide quoted text -

- Show quoted text -
>
Yes, debugged was enabled.
>
When debugging is turned on ASP will only use one worker thread to handle
requests. If your ASP code performs an action which generates another
request into the site that request will queue waiting for you ASP code to
complete. However your ASP code won't complete until its received a
response from the second request. Its a deadlock. Eventually the second
request will timeout and you'd get an error, Access denied is not what I
would expect to be the result though.

Do you have anonymous access turned on?

Note having ASP code generate requests to other ASP pages running in the
same application can also be a source of problems when used heavily. You
can end up with deadlock even without debugging turned on.



--
Anthony Jones - MVP ASP/ASP.NET


Closed Thread


Similar ASP / Active Server Pages bytes