The ConnectWebParts method cannot be called after connections have already been activated (in SPWebPartManager.PreRender). ...