Hello DPC David,
Check whether you have the following template in your website Sitefinity\Admin\ControlTemplates\Notifications\SubscribersTemplate.ascx
and controls with the IDs shown below
The error could be thrown if you have
- last name
- first name
or Subscriber.SubscriberId is null - there is no such subscriber.
Try to get the subscribers for the group you are trying to see by using
IList subscribers = (IList)this.newsletterManager.GetSubscribersOfGroup(this.selectedGroupId, string.Empty) and see whether there are some records that should have been deleted.
The correct code to unsubscribe a user is shown below
var dataManager = new DataManager ( );
IList gSubs = dataManager.GetSubscriberGroupsOfSubscriber ( subscriberEmail );
foreach ( IGroupSubscriber gSub in gSubs )
dataManager.DeleteGroupSubscriberRelation ( gSub );
ISubscriber subscriber = dataManager.GetSubscriber ( subscriberEmail );
if ( subscriber != null )
dataManager.DeleteSubscriber ( subscriber );
You are deleting the subscriber, but not all relations and it could exist in another group. When the Grid is bound this subscriber cannot be found because it has been removed, but it is still associated with an group and you get the null error.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.