Tuesday, June 12, 2007

ASP.NET 2.0 ReportViewer :: Failed to enable constraints

I'm using the ASP.NET 2.0 ReportViewer in local mode for the first time (and it ROX). Here are two excellent tutorials:
After you get everything set up and are running the tutorials, you may get this error message:

An error has occurred during report processing.
Exception has been thrown by the target of an invocation.
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.


You can go here for the solution to this.

One last piece of code that will save you from a migraine :)

this.ReportViewer1.LocalReport.Refresh();

Good Luck!

-Eurlist.thesol.com

No comments: