ReportViewer runtime error:Object reference not se
Hello I am using reportviewer control to show a graph of some data on an asp.net page. It is working fine in the debugger, but when I move the code over to our testing server I get a runtime error, the runtime error shows up on the webpage and simply says:
An error has occurred during report processing.
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.
I tried instantiating the ReportViewer in code behind like so:
Microsoft.Reporting.WebForms.ReportViewer r = new Microsoft.Reporting.WebForms.ReportViewer();
That didn't help at all.
Any ideas?
Thanks a lot you guys have been very helpful.
|