ReportViewer Problem

Last post 09-06-2007 8:04 AM by vidapura. 1 replies.

Sort Posts:

  • ReportViewer Problem

    03-21-2007, 5:11 PM
    • Member
      25 point Member
    • gobotsoup
    • Member since 03-14-2007, 5:19 PM
    • Posts 69

    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:

    ReportViewer1 = new Microsoft.Reporting.WebForms.ReportViewer();

    That didn't help at all.
    Any ideas?
    Thanks a lot !

    Filed under:
  • Re: ReportViewer Problem

    09-06-2007, 8:04 AM
    • Member
      134 point Member
    • vidapura
    • Member since 07-29-2003, 6:21 AM
    • Posts 121

    Sounds like you haven't got the reportviewer installed on the server.

    When you installed visual studio on your own machine the reportviewer would have been installed along with it.

    But when you move your code to a deployment server you probably wouldn't have installed visual studio on it right?

    So you need to get the installation package for the reportviewer and install it on your server.

    Be Careful though....There were bugs in the reportviewer control that came with the visual studio service pack 1, so microsoft made a fix available ... thats the version i would recommend installing.

    So you'll have to first get your development machine uprevved to the right version.. and THEN install on the server.

    Have a look at: http://support.microsoft.com/kb/933137

    Basically If you have Visual Studio on the machine then run the VS80sp1-KB926601-X86-ENU.exe to install visual studio service pack 1 (if you haven't already done it). THEN run VS80-KB933137-X86.exe to fix the service pack….Then on your server (assuming you don't have visual studio installed on it..) run ReportViewer.exe to make the report viewer control available to your web apps... Then when you deploy things should work.. you may encounter caching problems with IIS and .net so you might need to clear out the .net temporary files... Hope this helpsVida

     

Page 1 of 1 (2 items)