To clarify the error message is against this specfic part of the
code
db.Synchronize pathstring
There was a bug in the initial release of A2K7 that caused the
..Synchronize method to fail. It was fixed in SR1.
Also, I'd suggest you spend more time researching before posting, as
this was discussed at length in many newsgroups, as well as being
fully documented in the Microsoft Knowledge Base.