Hi,

I'm trying to get this CDO sample to work
http://www.cdolive.com/phonelist.htm.

I'm running an Exchange Server 5.5 and an IIS 5.0. Before I used IIS 4.0 and
the same
sample run perfectly. But after upgrading to IIS 5.0 I get an error.

>From the code:

' Create CDO session
Err.Clear
On Error Resume Next
Set objSession = Server.CreateObject("MAPI.Session")
If Not objSession Is Nothing Then                       

        ' Logon with anonymous CDO profile
        Err.Clear
        On Error Resume Next
        objSession.Logon "", "", False, True, 0, True, bstrProfileInfo
                                
        ' Check for possible error
        If Err.Number = 0 Then
                
                ' Set application and impersonation
                Set Application("CDOAnonSession") = objSession  (Here I get
an error)

Error number: -2147467259
Error description: 006~ASP 0197~Disallowed object use~Cannot add object with
apartment model behavior to the application intrinsic object.

Can anybody help me?

Thanks!

Terje Pedersen
[EMAIL PROTECTED]

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to