BUG: Unable to View Message Created with PostUsingExchange Through Outlook or Outlook Web Access (296598)



The information in this article applies to:

  • Microsoft Exchange 2000 Server
  • Microsoft Exchange 2000 Enterprise Server

This article was previously published under Q296598

SYMPTOMS

When you attempt to view an item that was created by using the PostUsingExchange method in Collaboration Data Objects (CDO) for Exchange 2000, you receive one of the following error messages:

With Microsoft Outlook:
Microsoft Outlook
Can't open this item. Out of memory or system resources.
Close some windows or programs and try again.
With Microsoft Outlook Web Access:
You are not authorized to view this page.
You might not have permission to view this directory or page using the credentials you supplied.
..
HTTP Error 403 - Forbidden
Internet Explorer

CAUSE

PR_MESSAGE_CLASS is not set when the item is posted to the store.

RESOLUTION

To work around this problem, manually set the message class of the item to IPM.POST.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. In Outlook or Exchange System Manager, create a public folder.
  2. In Microsoft Visual Basic, create a Standard EXE project and paste the following code in the project:
     Dim iMsg As New CDO.Message
     Dim oConn As New ADODB.Connection
     Dim sFolderURL As String
        
     'TO DO: sFolderURL should be a valid folder created via the client.
    sFolderURL = "file://./backofficestorage/domain/public folders/test/"
        
     'Open a connection object to the folder.
     oConn.Provider = "ExOLEDB.DataSource"
     oConn.Open sFolderURL
        
     iMsg.Configuration(cdoPostUsingMethod) = cdoPostUsingExchange
     iMsg.Configuration(cdoActiveConnection) = oConn
     iMsg.Configuration.Fields.Update
     iMsg.From = "user1"
     iMsg.Subject = "test subject"
     iMsg.TextBody = "Text for the message body"
        
     iMsg.Fields(cdoHardLinkList) = Array(sFolderURL)
     iMsg.Fields.Update
     iMsg.Post
    
     oConn.Close
     Set iMsg = Nothing
     Set oConn = Nothing
    					
  3. Add a reference to the CDO for Exchange 2000 Library and ActiveX Data Objects 2.5 Library.
  4. In the code, locate the lines that are marked "TO DO" and modify the code according to your situation.
  5. Run the code so that an item is created in the folder.
  6. Attempt to use Outlook or Outlook Web Access to open the item.

Modification Type:MajorLast Reviewed:6/30/2004
Keywords:kbbug kbMsg KB296598