DCOM problem sending email out of ASP script 
Author Message
 DCOM problem sending email out of ASP script

I have serious problems sending e-mails out of my ASP script using the
outlook automation interface.

Following code:

---------
  Set objMail = Server.CreateObject("Outlook.Application")
  Set myNameSpace = objMail.GetNameSpace("MAPI")

  Set objItem = objMail.CreateItem(0) ' where I presume 0 is a mail
item

  objItem.Subject = "some subject name"
  objItem.Body = "some garbage..."
  objItem.Send
---------

This script works just fine when started as VB-Script (.VBS) with
wscript.exe. But when run out of an ASP-script, i get the following
errors in the event-viewer when executing CreateObject (messages
translated from german)

------------
User: SYSTEM
The server {0006F03A-0000-0000-C000-000000000046} could not register
DCOM within given time period.

User: Administrator
A DCOM-server could not be started: {73AA8F59-DBC4-11D0-AF5C-
00A02448799A} as TESTNT/Interactive User. Error:
"The system could not find the specified file. "
occured starting the command:
D:\Programme\Microsoft Visual Studio\Common\IDE\IDE98\devenv.exe -
JITDebug -Embedding
-------------

This path does not exist at all!!! But why does it work started from
outside ASP? I know this must have something to do with the IIS service
and the active user account, but I tried to change the IIS anonymous
user login from IUSR_server to administrator. still no go.

Any ideas? What causes this problem? Please help! I struggled with that
problem nearly a day. I tried to reinstall office several times: no go.
I use Office 2000. What I try next is to install Outlook 97 or 98 and
then reinstall the newest service pack (5) for my nt-server. Hope it
cames to an end ...

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Mon, 15 Jul 2002 03:00:00 GMT  
 DCOM problem sending email out of ASP script
I've had the same problems. If you figure it out please let me know.

Troy Bondurant

Quote:

>I have serious problems sending e-mails out of my ASP script using the
>outlook automation interface.

>Following code:

>---------
>  Set objMail = Server.CreateObject("Outlook.Application")
>  Set myNameSpace = objMail.GetNameSpace("MAPI")

>  Set objItem = objMail.CreateItem(0) ' where I presume 0 is a mail
>item

>  objItem.Subject = "some subject name"
>  objItem.Body = "some garbage..."
>  objItem.Send
>---------

>This script works just fine when started as VB-Script (.VBS) with
>wscript.exe. But when run out of an ASP-script, i get the following
>errors in the event-viewer when executing CreateObject (messages
>translated from german)

>------------
>User: SYSTEM
>The server {0006F03A-0000-0000-C000-000000000046} could not register
>DCOM within given time period.

>User: Administrator
>A DCOM-server could not be started: {73AA8F59-DBC4-11D0-AF5C-
>00A02448799A} as TESTNT/Interactive User. Error:
>"The system could not find the specified file. "
>occured starting the command:
>D:\Programme\Microsoft Visual Studio\Common\IDE\IDE98\devenv.exe -
>JITDebug -Embedding
>-------------

>This path does not exist at all!!! But why does it work started from
>outside ASP? I know this must have something to do with the IIS service
>and the active user account, but I tried to change the IIS anonymous
>user login from IUSR_server to administrator. still no go.

>Any ideas? What causes this problem? Please help! I struggled with that
>problem nearly a day. I tried to reinstall office several times: no go.
>I use Office 2000. What I try next is to install Outlook 97 or 98 and
>then reinstall the newest service pack (5) for my nt-server. Hope it
>cames to an end ...

>Sent via Deja.com http://www.deja.com/
>Before you buy.



Tue, 16 Jul 2002 03:00:00 GMT  
 DCOM problem sending email out of ASP script
You may need to enable out-of-process components within IIS. Here's a
VBScript that will change your setting. You might want to search the
knowledge base about this, because I believe it creates some security holes
on your web server.

You could use CDONTS to send email from IID if you're running NT Server 4,
but not workstation. Server Objects makes an ASPMail component which is
highly affordable at $40/processor. http://www.serverobjects.com.

Paul Shapiro
----------
' Get the IIsWebVirtualDir Admin Object
Set VDirObj = GetObject("IIS://LocalHost/W3svc")
if vdirObject is nothing then
 msgbox "Failed to get object"
end if

' Enable or disable the AspAllowOutOfProcComponents Parameter
VDirObj.Put "AspAllowOutOfProcComponents", True

' Save the changed value to the metabase
VDirObj.SetInfo
-------------

Quote:
> I've had the same problems. If you figure it out please let me know.

> Troy Bondurant


> >I have serious problems sending e-mails out of my ASP script using the
> >outlook automation interface.

> >Following code:

> >---------
> >  Set objMail = Server.CreateObject("Outlook.Application")
> >  Set myNameSpace = objMail.GetNameSpace("MAPI")

> >  Set objItem = objMail.CreateItem(0) ' where I presume 0 is a mail
> >item

> >  objItem.Subject = "some subject name"
> >  objItem.Body = "some garbage..."
> >  objItem.Send
> >---------

> >This script works just fine when started as VB-Script (.VBS) with
> >wscript.exe. But when run out of an ASP-script, i get the following
> >errors in the event-viewer when executing CreateObject (messages
> >translated from german)

> >------------
> >User: SYSTEM
> >The server {0006F03A-0000-0000-C000-000000000046} could not register
> >DCOM within given time period.

> >User: Administrator
> >A DCOM-server could not be started: {73AA8F59-DBC4-11D0-AF5C-
> >00A02448799A} as TESTNT/Interactive User. Error:
> >"The system could not find the specified file. "
> >occured starting the command:
> >D:\Programme\Microsoft Visual Studio\Common\IDE\IDE98\devenv.exe -
> >JITDebug -Embedding
> >-------------

> >This path does not exist at all!!! But why does it work started from
> >outside ASP? I know this must have something to do with the IIS service
> >and the active user account, but I tried to change the IIS anonymous
> >user login from IUSR_server to administrator. still no go.

> >Any ideas? What causes this problem? Please help! I struggled with that
> >problem nearly a day. I tried to reinstall office several times: no go.
> >I use Office 2000. What I try next is to install Outlook 97 or 98 and
> >then reinstall the newest service pack (5) for my nt-server. Hope it
> >cames to an end ...

> >Sent via Deja.com http://www.deja.com/
> >Before you buy.



Wed, 17 Jul 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ASP send email problem

2. script which send an email to an email adress, with file attached

3. university EMR send outs

4. VB Script in Access to send encrypted email

5. Trying to create a VBA script that will send out an email everyday

6. Allowing Access Scripts to send email through Outlook

7. Sending EMAIL from scripts without logging in

8. script to send and email

9. How to automate Outlook with email attachment from ASP Clinet using vb SCRIPT

10. email me ny vbs scripts i am making a huge prog with any features u send

11. email me ny vbs scripts i am making a huge prog with any features u send

12. send email from login script

 

 
Powered by phpBB® Forum Software