Thursday, November 10, 2011

Exchange Web Services - OptionalAttendees

When I try to create a new appointment using EWS Managed API, I get the following error.

The request failed schema validation: The element 'OptionalAttendees' in namespace '' has incomplete content. List of possible elements expected: 'Attendee' in namespace ''.

When I add an optional attendee it works but I do not need any optional attendee.

I tried


but no help.

But removing it by using

public readonly static ExtendedPropertyDefinition PidLidOptionalAttendees = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Meeting, 0x00000007, MapiPropertyType.String);


solved my problem.

Saturday, June 18, 2011

Monday, June 13, 2011

Word Automation

I have an application using Ms Word for spell checking. The application impersonates an admin account. The application runs when the specified account is logged on the server. But when the account is not logged on I receive " (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))" error.

I solved the problem as following:

Created a new pool for the application.
Set the identity specified in the web config.
Set load profile true.

I could not set the security because the MS Word is not listed in the dcom config. I could add it to there but I did not want to modify the registry.So I had to do as above.