Showing posts with label Trouble Shooting. Show all posts
Showing posts with label Trouble Shooting. Show all posts

April 07, 2011

Object reference not set error when creating a new Report Project in Visual studio 2008

This is the problem i have faced while working one of my project. I have to do the reporting of that project using SSRS reports, when i try to create a report project in visual studio 2008 i got the error "object refference not set to an instance of an object". So i tried to uninstall and re-install the visual studio but have no luck. And finally the following command solved my issue.

I go to the command prompt and execute this command  "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /ResetSkipPkgs

This command clears all options to skip loading tags added to VSPackages.

April 05, 2011

SSRS Report Viewer control not rendering images on its toolbar

This is the problem i have faced during the deployment of one of my projects in Windows Server 2008 machine. While accessing the SSRS reports from asp.net pages using Report Viewer control the imanges in the toolbar are not rendering properly. And i have used the following steps to resolve this issue. I am posting this, so that if someone having similar problem can resolve it quickly.


Following are the steps:
Step 1: Goto Control Pannel\Administrative Tool\Internet Information Services (IIS) Manager.
Step 2: Open the Handler Mapping icon (you will find it on the IIS area on the middle panel)
Step 3: Click on the "Add Managed Handler." (you will get this option if the application pool is set to default applicaton pool)
step 4: a. Put Reserved.ReportViewerWebControl.axd on the "Request Path" text box.
           b. Put Microsoft.Reporting.WebForms.HttpHandler on "Type"
           c. Click on Ok.