Report Viewer Error, Plz help
-
Hi All, I am using reportviewer control to show some data on an asp.net page. It is working fine in the Development Machine, but when I move the code over to our Production 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. That didn't help at all. Any ideas? Thanks a lot you guys have been very helpful. Sajjad
-
Hi All, I am using reportviewer control to show some data on an asp.net page. It is working fine in the Development Machine, but when I move the code over to our Production 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. That didn't help at all. Any ideas? Thanks a lot you guys have been very helpful. Sajjad
To catch the exception, enclose the line within a try/catch block and get the InnerException: Try with this code and catch the exception
try { MyForm.Invoke(MyForm.MyDelegate, new Object[] { someParameter }); } catch (Exception ex) { MessageBox.Show(ex.InnerException.Message); }
Regards, Satips.