PRB: Problems with CDO after Upgrading to Outlook 98

ID: Q194077

The information in this article applies to:

SYMPTOMS

After upgrading to Collaboration Data Objects (CDO) 1.21 and Outlook 98, the following problems may occur:

CAUSE

These problems can occur if you call the Logon method of the Session object and specify a stored profile that has been used by Outlook 98.

RESOLUTION

To successfully call the GetDefaultFolder() function when specifying the Calendar folder or to return an appointment object instead of a message object where appropriate, use one of the following two methods:

Method One

Specify ProfileInfo when calling the Session.Logon method instead of specifying a stored profile.

For example:

   objSession.Logon ProfileInfo:= <server name> & vbLf & <mailbox name>

Method Two

Use a separate profile for CDO applications and another for Outlook 98.

MORE INFORMATION

You use the ProfileInfo parameter of the Logon method to create a temporary profile for the session. CDO generates a random name for the profile. For an authenticated profile, the format of the string follows:

  <server name> & vbLf & <mailbox name>

The server and mailbox names can be unresolved. Note that the mailbox name is not the messaging user's display name, but rather the alias or account name used internally by the user's organization. For example, you should use "johnd" instead of "John Doe". The profile is deleted after the logon is completed or terminated. The ProfileInfo parameter is only used by applications interfacing with Microsoft Exchange Server and no other services. The profileName parameter is ignored if ProfileInfo is supplied.

REFERENCES

Collaboration Data Objects Help; search on: "GetDefaultFolder"

Additional query words: kbDSupport kbMsg kbole kbCDO120 kbCDO121

Keywords          : kbCDO120 kbCDO121 kbMsg kbOutlook98 kbGrpMsg 
Version           : WINDOWS:1.2,1.21
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: April 8, 1999