Handle groups and connection id purposes in ASP.NET 4.
#1325