Hi there,
Here is my story - my merge replication topology consists of one publisher (sql server 2008), a distributor (same server as publisher) and a subscriber (sql server 3.5 CE). I use web synchronization for my merger replication. Publisher, Distributor, Subscriber and IIS run all on the same (development) machine. I use MSSMS to synchronize the subscriber.
I've created a custom resolver (Business Logic Handler) that should perform some data modification that has been inserted at the subscriber, before it is merged into the publisher. It should but it doesn't so I need to debug it to see what's going on. I've followed steps form here http://msdn.microsoft.com/en-us/library/ms365150.aspx on how to debug a business logic handler on a Web server using Web synchronization and I'm stuck at step 7.MY PROBLEM IS when I attache to inetinfo.exe process from VS2008, I don't see my assembly to be loaded neither in Output nor in Modules window and the break points say that they will not be hit because the symbols were not loaded.
I configured web synchronization almost exactly as it says here http://msdn.microsoft.com/en-us/library/ms151810.aspx , the only difference is that I didn't configured and don't use SSL but even so the synchronization works between publisher and subscriber.
I set the break points and built my business logic assembly in debug mode (I cleared \obj and \bin folders before build), copied both .dll and .pdb files into C:\Program Files\Microsoft SQL Server\100\COM folder and registered it into Distributor using following script:
exec sp_registercustomresolver
@article_resolver = N'Custom Conflict Resolver' , @resolver_clsid = NULL , @is_dotnet_assembly = N'true' , @dotnet_assembly_name = N'C:\Program Files\Microsoft SQL Server\100\COM\CustomConflictResolver.dll' , @dotnet_class_name = N'CustomConflictResolver.CustomConflictResolver'
Then I sync the subscriber and after that, from VS2008 attach to the inetinfo.exe process with 'Attach to' option set to 'Managed code, Native code'. After I do all that, as I said earlier, I don't see my assembly to be loaded in Output neither in Modules windows.
[UPDATE]: I know that handler is executed during synchronization as I get the error that I generate in the code, than means that assembly is loaded. Why I don't see that it's loaded when I try to debug it?
Please help as I've already spent 2 days trying to figure this out but with no luck.
Thanks,
Victor