Microsoft KB Archive/296598

= BUG: Unable to View Message Created with PostUsingExchange Through Outlook or Outlook Web Access =

Article ID: 296598

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Exchange 2000 Server Standard Edition
 * 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.



Steps to Reproduce Behavior
 In Outlook or Exchange System Manager, create a public folder.  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 = &quot;file://./backofficestorage/domain/public folders/test/&quot; 'Open a connection object to the folder. oConn.Provider = &quot;ExOLEDB.DataSource&quot; oConn.Open sFolderURL iMsg.Configuration(cdoPostUsingMethod) = cdoPostUsingExchange iMsg.Configuration(cdoActiveConnection) = oConn iMsg.Configuration.Fields.Update iMsg.From = &quot;user1&quot; iMsg.Subject = &quot;test subject&quot; iMsg.TextBody = &quot;Text for the message body&quot; iMsg.Fields(cdoHardLinkList) = Array(sFolderURL) iMsg.Fields.Update iMsg.Post

oConn.Close Set iMsg = Nothing Set oConn = Nothing  Add a reference to the CDO for Exchange 2000 Library and ActiveX Data Objects 2.5 Library. In the code, locate the lines that are marked &quot;TO DO&quot; and modify the code according to your situation. Run the code so that an item is created in the folder.</li> Attempt to use Outlook or Outlook Web Access to open the item.</li></ol>

Keywords: kbbug kbmsg KB296598

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.