MS Reporting Services Error

I’ve had an issue, a couple of times now, with Reporting Services when emailing attachments (this can occur with automatic distribution of Team Foundation Server system reports). It is a known issue with RS. The fix requires administrative access to Active Directory – which I rarely have as a contract developer.

Here’s the MS help on it:

http://support.microsoft.com/default.aspx?scid=kb;en-us;842423

…and here’s the log file entry they refer to (from problem logs I have seen in the past):

ReportingServicesService!library!d!06/04/2009-09:02:32:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information., AuthzInitializeContextFromSid: Win32 error: 5; possible reason – service account doesn’t have rights to check domain user SIDs.;

Info: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information.

The problem is related to having emails with reports attached (embedded). I would recommend using the primary resolution as it requires the least amount of work and retains the current configuration on that box/machine (excerpt from MS online docs):

Method 1

1. Add the Windows account to the Pre-Windows 2000 Compatibility Access group by using the Active Directory Users and Computers snap-in.

2. Add the Windows account to the Windows Authorization Access group by using the Active Directory Users and Computers snap-in.

3. Restart the computer that is running Reporting Services.

Note

  • The Windows account in step 1 and in step 2 is the account that you use to run Reporting Services.
  • After you add the account to these groups, it is guaranteed that Reporting Services can access the TGGAU attribute.
  • This method does not require you to modify permissions on any user or group.

In my experience, the user that is running the service ‘SQL Server Reporting Services (MSSQLSERVER)’ on the problem box/machine is, by default,  ‘NT Authority\NetworkService’.

Due to the fact that in both environments I was not ‘authorised’ to modify the AD setup (as I was a contract developer) I have had to ask the external IT department to create a new user to run the service under and follow the above procedure for that new user account. This has solved the issue on both occasions.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: