Solved

Microsoft Sync Framework Hangs

Posted on 2011-09-29
9
599 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
Comment Utility
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
Comment Utility
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
Comment Utility
Are you using any WCF?
0
 
LVL 1

Author Comment

by:rkulp
Comment Utility
No
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Author Comment

by:rkulp
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Glad to help :-)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now