Microsoft KB Archive/917494

= FIX: A &quot;System.NullReferenceException&quot; exception may be logged in the Reporting Services log when you try to create a snapshot report in SQL Server 2005 Reporting Services =

Article ID: 917494

Article Last Modified on 11/4/2007

-

APPLIES TO


 * Microsoft SQL Server 2005 Reporting Services

-



Bug: #614 (SQL Hotfix)



''Microsoft distributes Microsoft SQL Server 2005 Reporting Services fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2005 Reporting Services fix release.''



SUMMARY
This article describes the following about this hotfix release:
 * The issues that are fixed by this hotfix package
 * The prerequisites for installing this hotfix package
 * Whether you must restart the computer after you apply this hotfix package
 * Whether this hotfix package is replaced by any other hotfix package
 * Whether you must make any registry changes after you apply this hotfix package
 * The files that are contained in this hotfix package



SYMPTOMS
When you try to create a snapshot report in Microsoft SQL Server 2005 Reporting Services, the following exception may be logged in the Reporting Services log:

System.NullReferenceException

Additionally, you may experience the following problems:  You may notice that mini-dump files have been created in the LogFiles folder for Reporting Services. By default, the path of the LogFiles folder is as follows:

C:\Program Files\Microsoft SQL Server\ \Reporting Services\LogFiles

Note The folder name  is a placeholder because this folder name may vary, depending on which SQL Server services you have installed. The mini-dump files are created at a fixed interval.

Note You may also experience these problems in Microsoft SQL Server 2000 Reporting Services.



RESOLUTION
Note The hotfix that is discussed in this article is only for SQL Server 2005 Reporting Services. If you are experiencing a similar problem in SQL Server 2000 Reporting Services, see the &quot;Workaround&quot; section.

Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
There are no prerequisites for this hotfix.

Restart information
You do not have to restart your computer after you apply this hotfix.

Registry information
You do not have to create any registry keys or modify any registry keys to use any hotfixes that this package contains.

File information
This hotfix may not contain all the files that you must have to fully update a product to the latest build. This hotfix contains only the files that you must have to correct the issues that this article lists.

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.



WORKAROUND
To work around this problem, follow these steps in Visual Studio 2005:  On the File menu, point to Open, and then click File. In the Open File dialog box, click Report.rdl, and then click Open. On the View menu, click Code.</li>  Locate the following code. <DataSources> <DataSource Name=&quot;AdventureWorks&quot;> </li>  Replace the code that you located in step 3 with the following code. <DataSources> <DataSource Name=&quot;AdventureWorks&quot;> <Transaction>true</Transaction> </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional query words: EnsureAllStreamsAreClosed RenderFirst Reporting Services NullREferenceException

Keywords: kbfix kbbug kbsql2005rs kbhotfixserver kbqfe kbpubtypekc KB917494

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.