I have used query notification on my c# application successfully using local database. However, changing the connection string to my actual database (not local) results in an error. Note that both databases are identical + queues and services etc. are identical on both databases. All I did was swap the connection strings ==> resulting in failure to create queue subscription. If there is something I am missing regarding Local vs Remote DB dependencies please advise.
The part of Code Raising the Exception:
private void Handle_OnChange(object sender, SqlNotificationEventArgs e)
{
if (e.Type != SqlNotificationType.Change)
throw new ApplicationException("Failed to create queue notification subscription!");