Visual Studio Development Bookmark and Share   
 index > Visual Studio Tools for Office > Problem with STSSync Protocol Provider
 

Problem with STSSync Protocol Provider

Hello all. I m trying to integrate Ms outlook 2007 with my application through STSSync Protocol Provider. It seems it has two ways synchronizing with outlook but i m stumble with a problem when i m synchronizing with outlook it gets to 79-89 percent and then goes to endless loop i can t figure out why it is happening Contact and Task synchronizing have no problem. Does anyone have experiences with STSSync Protocol Provider . Thank you
deng2  Thursday, October 15, 2009 8:04 AM
Hello. I did noticet thet when i use calendar i keep getting rowLimit 0 at GetListItemChangesSinceToken() event i could manage to over came this problem with rewriting GetListItemChangesSinceToken from the code which i took from previos solution http://msdn.microsoft.com/en-us/library/aa168130(office.11).aspx
However i can t figure out what could cose this prblem as i mention befor if i use this code for contact synchworks fine .
Thanks anywhere for all your hardwork really helpful.
deng2  18 hours 14 minutes ago

Hello

<<it gets to 79-89 percent and then goes to endless loop i can t figure out why it is happening Contact and Task synchronizing have no problem>>
With this information, in my side I am not able to reproduce this issue. Are you working with VSTO project? If yes, could you please tell me the simple steps of reproducing?

Here are some threads about STSSync protocol Provider:
Problem downloading items from SharePoint list in Outlook.
VSTO, Outlook and asynchronous programming.

Hope this helps,
Bessie


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Bessie Zhao  Friday, October 16, 2009 8:10 AM
Hello . The changesI have made to synch calendar i wrote below.

ListType.Contact; to ListType.Calendar;
and left only one column

public StringDictionary GetFieldMappingsForListType(Guid ProviderID, ListType listType)

{

StringDictionary fieldNames = new StringDictionary();

fieldNames.Add(

"ContactID", "ID");

}

public

ListType GetProviderType(Guid ProviderID)

{

return ListType.Calendar;

}

deng2  Sunday, October 18, 2009 10:03 AM

With this information, it is stillhard to troubleshoot this issue.However here my suggestion is to compare the codes of calendar and contact/task. Itmeans targeting at the functions.

I think you could set breakpoint to the project. Also may check this link: http://msdn.microsoft.com/en-us/aa168130(office.11).aspx.

useful link: http://stssyncprovider.codeplex.com/SourceControl/changeset/view/12491#.

Actually, I am afraid this issue is little related to VSTO technology rather than Outlook. Since I am not Outlook expert, I tried to catch on this issue totally and I still donot know what all is going on behind the scenes. So here I also recommend you post this issue to Outlook newsgroup. You will find a appropriate entry in VSTO forum's PLEASE READ FIRST.

Best regards,
Bessie


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Bessie Zhao  19 hours 11 minutes ago
Hello. I did noticet thet when i use calendar i keep getting rowLimit 0 at GetListItemChangesSinceToken() event i could manage to over came this problem with rewriting GetListItemChangesSinceToken from the code which i took from previos solution http://msdn.microsoft.com/en-us/library/aa168130(office.11).aspx
However i can t figure out what could cose this prblem as i mention befor if i use this code for contact synchworks fine .
Thanks anywhere for all your hardwork really helpful.
deng2  18 hours 14 minutes ago

I am glad to know that you have found a solution for this issue.

Best regards,
Bessie


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Bessie Zhao  3 hours 40 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Get values from ExcelName Ranges
• VSTO Tools Backward compatibility
• Error when loading a MSDN sample solution
• Multithreading
• Outlook 2003 Add in not loaded
• InsertAutotext() not working properly in VSTO 2005. (Word, C#)
• VS 2008 workbook designer shows empty grey workbook instead of existing spreadsheet
• I need a help with CMschart control!
• How to the Spreadsheet Control as datasource to the Chart Control?
• CustomTaskPane BackColor