Hi @DmitryS , thanks for quick answer.
While you were replying, I was doing another test and tried to use the overload of the method that accepts custom PropertyDescriptor list.
It gives the same error even if I have excluded the property PidLidTaskAcceptanceState from the list… maybe the library doesn’t run correctly the overload and always load all the properties?
Please check and let me know, in the meanwhile I’ll try your fix.
Unfortunately I cannot send msg because I still didn’t manage to download anything, it just gives error.
This is the code:
var currTasks = service.FetchMapiTasks(new List<string> { msgUri }, defaultTaskProperties );
and this the property list:
public static PropertyDescriptor[] defaultTaskProperties = new PropertyDescriptor[] { PropertyDescriptor.GetInstance(34062, PropertyDataType.Boolean, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34071, PropertyDataType.Time, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34070, PropertyDataType.Time, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34130, PropertyDataType.Integer32, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34132, PropertyDataType.String, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33026, PropertyDataType.Floating64, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34054, PropertyDataType.Boolean, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34049, PropertyDataType.Integer32, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34051, PropertyDataType.Boolean, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34064, PropertyDataType.Integer32, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34068, PropertyDataType.Boolean, new Guid("00062008-0000-0000-c000-000000000046")), //PropertyDescriptor.GetInstance(33066, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), // ****** PropertyDescriptor.GetInstance(33040, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33057, PropertyDataType.String, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33052, PropertyDataType.Boolean, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33029, PropertyDataType.Time, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33041, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33068, PropertyDataType.Boolean, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33062, PropertyDataType.Boolean, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34072, PropertyDataType.Integer32, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33060, PropertyDataType.Boolean, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33059, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33055, PropertyDataType.String, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33065, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33063, PropertyDataType.String, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33028, PropertyDataType.Time, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33043, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33025, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33042, PropertyDataType.Integer32, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(33027, PropertyDataType.Boolean, new Guid("00062003-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34208, PropertyDataType.Time, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34209, PropertyDataType.String, new Guid("00062008-0000-0000-c000-000000000046")), PropertyDescriptor.GetInstance(34239, PropertyDataType.Time, new Guid("00062008-0000-0000-c000-000000000046")) };