Microsoft KB Archive/921546

= Error message when you try to run a report or upload a report in Microsoft Dynamics CRM: &quot;The request failed with HTTP status 401: Unauthorized&quot; or &quot;Server Error in ‘/’ Application&quot; =

Article ID: 921546

Article Last Modified on 1/4/2008

-

APPLIES TO


 * Microsoft Dynamics CRM 4.0
 * Microsoft Dynamics CRM 3.0

-





Symptom 1
When you try to run a report in Microsoft Dynamics CRM 3.0, you receive the following error message:

The request failed with HTTP status 401: Unauthorized.

When you try to run a report in Microsoft Dynamics CRM 4.0, you receive the following error message:

An error occurred while trying to add the report to Microsoft Dynamics CRM.

Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization's Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.

Error code: 0x80048298

Symptom 2
Consider the following scenario in Microsoft Dynamics CRM:
 * You build a custom report by using Microsoft Visual Studio 2003 or by using a similar tool.
 * You try to upload the report to the Microsoft Dynamics CRM system.

In this scenario, you receive the following error message:

Server Error in ‘/’ Application. Exception of type Microsoft.Crm.CrmException was thrown.

If the DevErrors parameter is enabled, you receive this error message on the screen.

This error message occurs in some configurations. For example, this error message may occur if the following conditions are true:
 * The following products are installed on the same server:
 * Microsoft SQL Server
 * SQL Server Reporting Services (SRS)
 * Microsoft Dynamics CRM is installed on a separate server.



CAUSE
This problem occurs because the security account for the CRMAppPool application pool does not have the Publisher for Microsoft Dynamics CRM role in Report Manager.



RESOLUTION
To resolve this problem, follow these steps:  Find the user. To do this, follow these steps:  On the Microsoft Dynamics CRM server, click Start, click Run, type compmgmt.msc /s, and then click OK to open Computer Management. Expand Services and Applications, expand Internet Information Services (IIS) Manager, expand Application Pools, right-click CRMAppPool, and then click Properties. In the CRMAppPool Properties dialog box, note the value in the Predefined box on the Identity tab.

Note The value is the user who you want to find.  Set the Publisher for Microsoft Dynamics CRM role to the user. To do this, follow these steps:  On the Microsoft Dynamics CRM server, type the following address in the Address bar in Microsoft Internet Explorer, and then click Go to open Reporting Services Report Manager:

http:// /Reports

Note  is a placeholder that represents an actual name of a Microsoft SQL Server Reporting Services server.</li> Click the Microsoft Dynamics CRM company name.

Note The Microsoft Dynamics CRM company name resembles the following:

CRM_ _MSCRM

</li> On the Properties tab, click Security.</li> Check to see whether the user who you found in step 1 is listed.

Note If the user is not listed, click New Role Assignment.</li> In the Group or user name box, type the name of the user who you noted in step 1c.

Note If the name of the user is &quot;Network Service,&quot; type the following name in the Group or user name box:

NT Authority\Network Service

</li> Click to select the Publisher for Microsoft CRM check box, and then click OK.</li></ol> </li></ol>

Keywords: kbmbscrm40 kbtshoot kbmbsreports kberrmsg kbmbsmigrate kbprb KB921546

-

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

© Microsoft Corporation. All rights reserved.