By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

asp - error of COM+ Admin SDK

P: 8
i am working in asp 3.0. and using this script....
Expand|Select|Wrap|Line Numbers
  1. objCDOSYSMail.From = request("txtFrom")
  2. objCDOSYSMail.To = request("client_email")
  3. objCDOSYSMail.Cc = "adm@adm.com"
  4. objCDOSYSMail.Subject = Request("txtSubject")
  5.  
'where client_email holds 10 email addresses
but during process it generates error
Expand|Select|Wrap|Line Numbers
  1. "(0x8004020E)
  2. Cannot modify or delete an object that was added using the COM+ Admin SDK"
  3.  
and when i change script like this one, it runs successfully
Expand|Select|Wrap|Line Numbers
  1. objCDOSYSMail.From = "abc@abc.com"
  2. objCDOSYSMail.To = "xyz@xyz.com"
  3. objCDOSYSMail.Cc = "adm@adm.com"
  4. objCDOSYSMail.Subject = Request("txtSubject")
  5.  
any suggestion, or any another alternate.
many thanks :)
Jan 28 '12 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 164
What is the value passed to the server through that form parameter? Response.Write() it to the screen and post it.
Feb 2 '12 #2

P: 8
thanks for reply - Nicodemas - ....after some careful study finally i managed to solve the problem.and i am sharing my mistake, for others if they have same issue like this
here is my mistake,,
i just hard code the email address of (from) in this tag
Expand|Select|Wrap|Line Numbers
  1.  <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
  2.  
and these three line were like this
Expand|Select|Wrap|Line Numbers
  1. objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "abcxyz@abcxyz.com"
  2. 'and
  3. objCDOSYSMail.From = request("txtfrom")
  4. objCDOSYSMail.To = request("client_email")
  5.  
and then, when i got your reply i again chk all my form values and email sending script, i finally managed to correct this problem.
so when script executed it was looking for
Expand|Select|Wrap|Line Numbers
  1. abcxyz@abcxyz.com
  2. 'in this line
  3. objCDOSYSMail.From = request("txtfrom")
  4.  
and form was sending something else, that was my mistake, then i again change this line
Expand|Select|Wrap|Line Numbers
  1.  <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
  2. 'to this
  3.  <input name="txtFrom" class="Text-Box" size="35" value="abcxyz@abcxyz.com">
  4.  
and script runs successfully without any errors.
-some times our little mistake is in front of our eyes but we don't know--:):):)
Feb 3 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.