BUG: Anonymous Logon Causes Spooler to Hang During Logoff

Last reviewed: January 7, 1998
Article ID: Q177630
The information in this article applies to:
  • Collaboration Data Objects (CDO), version 1.1
  • Microsoft Access 97

SYMPTOMS

After you create an anonymous session to the Exchange Server, the system hangs when you attempt to log off.

CAUSE

Logging on anonymously should not launch the Spooler, but by default the Spooler is started. Once started, the system hangs when it is issued a LogOffSpooler command.

RESOLUTION

When calling the Logon method of the Session object, set the NoMail parameter to True to prevent the Spooler from starting.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Copy and paste the following code into an Access form.

    NOTE: The underscore is used as a line-continuation character:

          Sub Session_Logon_Anon()
            Dim cServerDName, enterprise, site, server As String
            Dim objSession As Object
            Set objSession = CreateObject("MAPI.Session")
    
            If Not objSession Is Nothing Then
               MsgBox "CreateObject('MAPI.Session') Failed"
            Else
             'Modify the next 3 lines to properly define the enterprise,
             'site, and server for your system.
             enterprise = ""
             site = ""
             server = ""
             cServerDName = "/o=" & enterprise & "/ou=" & site & _
                    "/cn=Configuration/cn=Servers/cn=" & server
           objSession.Logon _
             Profileinfo:=cServerDName & vbLf & vbLf & "anon", _
             showDialog:=False
           End If
          End Sub
    
    

  2. Place a breakpoint on the "End If" line.

  3. When you stop at the breakpoint, click Exit on the File menu.
Version           : WINDOWS:1.1,97
Platform          : WINDOWS
Issue type        : kbbug


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 7, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.