Community discussion forum

Permission denied: 'CreateObject'

Tags: asp Thailand
  • 8 months ago

    <--- Sending email using vbscript, asp classic and outlook. --->

    Microsoft VBScript runtime (0x800A0046)
    Permission denied: 'CreateObject'

    I'm getting this error in my code --> Set Outlook = CreateObject("Outlook.Application")

    Please help...

    Thanks in advance! ü

     [this is actually posted already in vbscript forum, but i'm a little confused on where to post this so I posted it here too..Smiley Face ]

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 8 months ago

    you statement must be like this 

    Set Outlook = server.CreateObject("Outlook.Application") 

  • 8 months ago

    Thank you, johntau, and sorry for the late response, I tried your suggestion but it lead me to another error, =(

    Error Type:
    Server object, ASP 0178 (0x80070005)
    The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

    Thanks again.. ü

     

  • 8 months ago

    hello

    you must set the parameters in the dcomcnfg ( start, execute then dcomcnfg )
    search for the outlook object and set the correct user in the identity tab

    Serval

  • 8 months ago

    Ok, thanks, I'll  try it next time, because for now, my 'sending email' have a new approach and it is functioning well.. Thanks for the time.. ü

  • 7 months ago

    I am also facing the same problem and i tried to find outlook in DCOM but could not find it. I tried this on 2-3 computers but with same result. Outlook is working perfactly on all the computers. Pl. help...

Post a reply

Enter your message below

Sign in or Join us (it's free).