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 'http://schemas.microsoft.com/exchange/services/2006/types' has incomplete content. List of possible elements expected: 'Attendee' in namespace 'http://schemas.microsoft.com/exchange/services/2006/types'.

When I add an optional attendee it works but I do not need any optional attendee.
I tried
appointment.OptionalAttendees.Clear();
but no help. But removing it by using

public readonly static ExtendedPropertyDefinition PidLidOptionalAttendees = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Meeting, 0x00000007, MapiPropertyType.String);
appointment.RemoveExtendedProperty(PidLidOptionalAttendees);
solved my problem.
Using Count (Over Partition by) decreases the performance. Be careful before using this. I had to change these statements because of the performance problem.
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.

Notes:
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.

Word Automation

by on 2:30 PM
I have an application using Ms Word for spell checking. The application impersonates an admin account. The application runs when the specif...