Posted on: 10/17/2012 9:40:36 AM | Views : 423

I have these lines of code and it always has been working just fine until today.
protected void btnDeleteAll_Click(object sender, EventArgs e) { MassEmailOptOutDataContext dcUsers = new MassEmailOptOutDataContext(); IEnumerable<emailSubscriber> optOutUsers = (from allUsers in dcUsers.emailSubscribers select allUsers).ToList(); dcUsers.emailSubscribers.DeleteAllOnSubmit(optOutUsers); dcUsers.SubmitChanges(); } This is the error when I tried to delete all records.
Specified cast is not valid. Description: An unhandled exception occurred during the execution of the current web reques ...

Go to the complete details ...