Solved

Microsoft Sync Framework Hangs

Posted on 2011-09-29
9
606 Views
Last Modified: 2012-05-12
I have a program that synchronizes SQL Server CE with a SQL Server Express 2008 R2 database. It works fine on the Windows 7 computers and all but one Windows XP computer. On that computer, it hangs and I have no clue how to figure out what is causing the problem. The computer has Norton Internet Security on it. That may be the problem. We turned off the firewall and included the program in the "Allow" list but that did not help. The relevant code is attached. Suggestions on how to proceed will be greatly appreciated.
'Some setup

Partial Public Class LCCRMSSyncAgent
    
    Private Sub OnInitialized()
        LionsClubContacts.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional
        Provider.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional
        RecipientInformation.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional
        Services.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional
        ServicesRendered.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional
        UDFCategories.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional
        Users.SyncDirection = Microsoft.Synchronization.Data.SyncDirection.Bidirectional

    End Sub
End Class

'Lines that call the synchronization

     Dim LCCRMSSyncAgent As New LCCRMSSyncAgent
     Dim LCCRMSSyncStat As Microsoft.Synchronization.Data.SyncStatistics = LCCRMSSyncAgent.Synchronize()

Open in new window

0
Comment
Question by:rkulp
  • 5
  • 4
9 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 36891169
I think the ports that Sync services are using are being blocked. Disable Norton and try it again.
0
 
LVL 1

Author Comment

by:rkulp
ID: 36891324
CodeCruiser,

I agree and will have the user turn off Norton for testing. However, it cannot be turned off indefinitely. I have been unable to find which ports the framework uses. I will try with 1433. Do you know which ports are used?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 36891974
Are you using any WCF?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 1

Author Comment

by:rkulp
ID: 36892446
No
0
 
LVL 1

Author Comment

by:rkulp
ID: 36894545
We removed Norton Internet Security and the program still hangs when trying to synchronize. I'll be trying it on other XP computers to see if they hand also. At least one other XP computer worked fine.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 36894736
Try using the Process Monitor (google it) utility to see what resources (registry, file system, network ports) this program is trying to access.
0
 
LVL 1

Author Comment

by:rkulp
ID: 36897226
I used Process Monitor on the program. The results are in the attached file. In watching the procmon file, it turned out that I terminated the program too soon. It actually accomplished the synchronization in about 20 minutes, whereas on other computers, including XP computers, the process takes about 10 - 15 seconds. This computer is connected to the Internet via Hughes.Net satellite. We will take the computer to a cable hookup sometime next week as schedule permits and try again. Logfile.xls
0
 
LVL 1

Author Closing Comment

by:rkulp
ID: 36925640
Monitoring the process as it was running led us to the correct solution. Testing on a cable internet connection proved that the problem lay in the Hughes.net satellite not the program. Thanks for your help.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 36926978
Glad to help :-)
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question