asp - error of COM+ Admin SDK

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roshaan
    New Member
    • Jan 2012
    • 8

    asp - error of COM+ Admin SDK

    i am working in asp 3.0. and using this script....
    Code:
    objCDOSYSMail.From = request("txtFrom")
    objCDOSYSMail.To = request("client_email")
    objCDOSYSMail.Cc = "adm@adm.com"
    objCDOSYSMail.Subject = Request("txtSubject")
    'where client_email holds 10 email addresses
    but during process it generates error
    Code:
    "(0x8004020E)
    Cannot modify or delete an object that was added using the COM+ Admin SDK"
    and when i change script like this one, it runs successfully
    Code:
    objCDOSYSMail.From = "abc@abc.com"
    objCDOSYSMail.To = "xyz@xyz.com"
    objCDOSYSMail.Cc = "adm@adm.com"
    objCDOSYSMail.Subject = Request("txtSubject")
    any suggestion, or any another alternate.
    many thanks :)
  • Nicodemas
    Recognized Expert New Member
    • Nov 2007
    • 164

    #2
    What is the value passed to the server through that form parameter? Response.Write( ) it to the screen and post it.

    Comment

    • roshaan
      New Member
      • Jan 2012
      • 8

      #3
      solved-asp - error of com+ admin sdk

      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
      Code:
       <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
      and these three line were like this
      Code:
      objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "abcxyz@abcxyz.com"
      'and
      objCDOSYSMail.From = request("txtfrom")
      objCDOSYSMail.To = request("client_email")
      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
      Code:
      abcxyz@abcxyz.com
      'in this line
      objCDOSYSMail.From = request("txtfrom")
      and form was sending something else, that was my mistake, then i again change this line
      Code:
       <input name="txtFrom" class="Text-Box" size="35" value="abc@abc.com">
      'to this
       <input name="txtFrom" class="Text-Box" size="35" value="abcxyz@abcxyz.com">
      and script runs successfully without any errors.
      -some times our little mistake is in front of our eyes but we don't know--:):):)

      Comment

      Working...