Re: CDOSYS Send method fails first time

From: Jonas (jonas_at_nospam.pl)
Date: 08/09/04

  • Next message: Lee Derbyshire: "Re: XSO - Exchange Server Objects"
    Date: Mon, 9 Aug 2004 11:19:22 +0200
    
    

    I've found a solution, but it is kind of strange. The users must have the
    rights to CDOSYS in the registry:

    Path: HKEY_CLASSES_ROOT\TypeLib\{CD000000-8B95-11D1-82DB-00C04FB1625D}
    Permission: Authenticated Users - Read Control, This key and subkeys

    Path:
    HKEY_CLASSES_ROOT\TypeLib\{CD000000-8B95-11D1-82DB-00C04FB1625D}\1.0\0\win32

    Permission: Authenticated Users - Read Control, Query Value, This key and
    subkeys

    Why this only is a problem on the first access is still a mystery, but it
    works now so I'm happy!

    Brgds

    Jonas

    "Jonas" <jonas@nospam.pl> wrote in message
    news:%23VdRmm7eEHA.1692@tk2msftngp13.phx.gbl...
    > Hi!
    >
    > I've got a Windows 2003 Server with IIS and Exchange Server 2003 OWA
    > installed as frontend. I run a couple of asp-pages on the server and try
    to
    > send mail using the CDOSYS.DLL. If I have a newly restarted IIS, the
    CDOSYS
    > fails on the Send method if I access the web page with a non-admin user.
    But
    > after having accessed the web page with an administrative account, the
    Send
    > method works again until IIS is restarted, even for non-admin users. The
    > error I get is the following:
    >
    > -2147319779
    >
    > The code is taken from a MS sample:
    >
    > Set iMsg = CreateObject("CDO.Message")
    > If Err.number <> 0 Then
    > response.Write "[CreateObject] Err:" & Err.number & "-" &
    > Err.Description & "<br>"
    > End If
    >
    > iMsg.To = SendTo
    > iMsg.From = SendFrom
    > iMsg.Subject = Subject
    > iMsg.HTMLBody = Body
    >
    > iMsg.Send
    > If Err.number <> 0 Then
    > response.Write "[.Send] Err:" & Err.number & "-" & Err.Description &
    > "<br>"
    > End If
    >
    > Any tips ??
    >
    > Brgds
    >
    > Jonas
    >
    >


  • Next message: Lee Derbyshire: "Re: XSO - Exchange Server Objects"

    Relevant Pages

    • Re: Forcing Ownership of files
      ... >> without that right IF they have Full Control. ... > have explicit permission to do whatever they like with the content of ... > when I first tuned up here from a Novell server to a Windows 2000 server ... Now they are worried about security so ...
      (microsoft.public.win2000.active_directory)
    • Re: PM Security Issue
      ... gives me permission to open projects in Microsoft Project Professional. ... Categories control what you can do it to. ... in which I am a team member, and in which my resources are team members. ... When the My Projects category is included in the Project Managers group, ...
      (microsoft.public.project.pro_and_server)
    • Re: ISA Server Error
      ... from NETWORK SERVICE to Local Server for the logon. ... The default permission should be ... Administrators: Full Control ... make a rule change or anything. ...
      (microsoft.public.isa)
    • RE: IE Hosted UserControl - javascript interaction not working.
      ... To access public properties or invoke public methods of the control from ... Information window, select the checkbox before the 'Make assembly ... need assign the control assembly embeded in the web page the permission to ... Code Group' window, select the 'Create a new code group' option and type a ...
      (microsoft.public.dotnet.framework.windowsforms)
    • Re: Security exception
      ... assembly is requesting a Permission that is not given by default to the zone ... You can sign your control with some strong name key and update the ... policy to give it the required permission. ... security engine will begin a stack walk for every demand and it will fail ...
      (microsoft.public.dotnet.security)