Sync Services over WCF

Posted on 2009-12-21
Last Modified: 2013-12-21
I started creating a Synchronization program using the sync framework.

Currently I am at this point:
1. I created a client project with the sync services which works without a problem. It has my *.sync file, the local Compact edition database and a clientprogram.vb
I used this as a guide:

2. I created a WCF Service Library which links to the Client Project and this one now creates a service on the localhost to the remote server. This also works fine. It has the app.config and *.sync file

3. Now I created a WCF Service website and I was able to install it on the IIS Remote server. The service is running correctly (I find it as a service reference)

The question is :How do i connect to the IIS hosted service and not the localhost service created in step 2. I'm sure it's simple and I'm not seeing it... please help.
Question by:mekke10
    LVL 42

    Accepted Solution

    open the iis manager and locate your service website.
    right click on the web application->Advanced Settings, look for the Virtual directory.
    check the screenshot i've posted.

    so if the server ip is and the vdir is /MyWebSiteServices, so the web srevice can be accessed by connecting to:

    Author Comment

    Ok, I found that part but where do I put it in the VS project.
    I have 3 projects running.

    On the client:
    - the Sync framework project
    - the WCF project that used a service to connect to the DB through: http://localhost:8080/project

    On the server:
    - the WCF service

    Do I put that path as a service reference? Or does it go into the app.config file?
    LVL 42

    Assisted Solution

    on the client, the project that consumes the wcf service (on the server) should use the wcf service virtual directory path when adding web reference.
    so instead of using http:\\localhost\YOURWEBSERVICE
    u shoud use the server ip/name:

    Author Closing Comment

    Thanks for the help. Both replies saved my hide.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Network type not correct. 8 48
    Slow Network 51 56
    Can't Make Laptop Computer Connect To Homegroup 33 39
    turbotax on windows 10 39
    Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
    You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 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

    22 Experts available now in Live!

    Get 1:1 Help Now