ASP crashes IIS

gbreed at cix.compulink.co.uk gbreed at cix.compulink.co.uk
Thu Nov 16 06:59:29 EST 2000


I have a reproducible failure now.  This script:


<%@Language=Python%>
<%
session = Server.CreateObject("MAPI.Session")
session.Logon ("", "", 0, 0, 0, 0, "server\nmailbox")
%>


consistently fails and requires the website to be restarted.

The COM object is provided by Outlook 98.

The equivalent VBScript script:


<%@Language=VBScript%>
<%
Set cdoSession = Server.CreateObject ("MAPI.Session")
cdoSession.Logon "", "", 0, 0, 0, 0, "server" & vbNewLine & "mailbox"
%>


produces this error:


error 'ASP 0115' 
Unexpected error 

/asp/graham/vbfail.asp 

A trappable error occurred in an external object. The script cannot 
continue running. 


and the server keeps going.  So it looks like VBScript handles these 
errors in a more graceful way than Python.  

Oh yes, the same code ran fine under Pythonwin when the permissions were 
set up for it.


                    Graham



More information about the Python-list mailing list