Hi
Hope this is the best place for this...
I'm developing a vb.net service to allow me to manage SQL replication.
When trying to instantiate the MergeSynchronizationAgent class, I get the following error:
Microsoft.SqlServer.Replication.ReplicationAgentException: The MergeSynchronizationAgent class must be instantiated on a Single-Threaded Apartment (STA) thread.
What do I do now
Thanks
Bruce

Service Threading
Ian Heyns
I worked it out - created a worker thread and made it STA....