My service which uses SqlDependency to receive notification for table changes has been working fine on .NET4. However since I upgraded to .NET4.5, it starts to lose subscription over time, especially where there's a lot of queries from my service to SQL. I'm able to reproduce this and when I go back to .NET4, the problem wasn't there.
I have checked the timing in my OnChange() function and its takes < 5 seconds to execute and on the last notification which I received, I did re-create another SqlDependency instance to subcribe for further notification.
When the issue appears, I saw this error in my sql errorlog:
2014-02-26 18:02:02.25 spid40s The query notification dialog on conversation handle '{D5DFC6C1-4397-E311-9D97-005056854BBF}.' closed due to the following error: '<?xml version="1.0"?><Error xmlns="http://schemas.microsoft.com/SQL/ServiceBroker/Error"><Code>-8470</Code><Description>Remote service has been dropped.</Description></Error>'.
Is there any known issue with SqlDependency on .NET4.5 and SQL Server 2008 R2?