Error: Occasionally Connected Smart Device Application

  • Thread starter Thread starter nusys
  • Start date Start date
It sounds to me like you didn't carefully follow the instructions when
changing the names of things after you created the database cache, perhaps
in "Configuring and Starting the WCF Service" or "To split synchronization
components between the server and client projects". I've gone through that
walk-through probably five times. The instructions are correct, but you
have to be extraordinarily careful not to skip any steps, rename any of the
wrong objects, misspell anything, etc. Once you do, it's very difficult to
find the error and figure out what to do about it. Certanly, you should
NEVER stop at just reading the output window to find out about errors during
execution of the application. Catch any exceptions that are thrown and read
them. There is often much more detail in a given exception than in just the
message output from it.

Paul T.
 
Sync Services is a little bit unforgiving. With that example it does work. I
found the following things seem to give a TargetInvocationException or
ArgumentException:

1. WCF endpoint wrongly configured in app.config
2. Wrongly configured SQL server connection string in the sync cache files.
You can use the wizard to ensure this.
 
Back
Top