Article ID: 932476 - Last Review: August 15, 2007 - Revision: 2.5
Error message in the Workflow Monitor when you use a callout to programmatically run a workflow rule that sends an e-mail message in Microsoft Dynamics CRM 3.0: "0X800404cc"
System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
When you use a callout to programmatically run a workflow rule that sends an e-mail message in Microsoft Dynamics CRM 3.0, the workflow rule is run as expected. However, the e-mail message is not sent, and you receive the following error message in the Workflow Monitor:
0X800404cc
For more information, see the example in the "More Information" section later in this article.
This issue may occur if one or more of the following conditions are true:
The Microsoft CRM Workflow Service is running under the Local System account or under the Network Service account. When the Microsoft CRM Workflow Service is configured under either of these accounts, permission to send e-mail messages is based on the user. When this issue occurs, the account does not have permissions to send e-mail messages in Microsoft Dynamics CRM 3.0.
The CRMAppPool application pool and the Microsoft CRM Workflow Service are running under two different accounts.
When you pass credentials from a callout to the workflow rule, both the CRMAppPool application pool and the Microsoft CRM Workflow Service should be running under the same account.
The account that is running the CRMAppPool application pool and the Microsoft CRM Workflow Service is not a member of the following groups:
The Local Administrator group on the Microsoft Dynamics CRM server
The IIS_WPG group on the Microsoft Dynamics CRM server
The CRM_WPG group on the Microsoft Dynamics CRM server
To resolve this issue, follow these steps. Complete these steps when there is no activity on the server because users will lose connectivity to the Microsoft Dynamics CRM 3.0 server. You must complete all the steps before you log on to Microsoft Dynamics CRM because you may receive error messages between the steps.
Step 3: Add the user who is running the CRMAppPool application pool and the Microsoft CRM Workflow Service
You must add the user who is running the CRMAppPool application pool and the Microsoft CRM Workflow Service to the following groups:
The Local Administrator group on the Microsoft Dynamics CRM server
The IIS_WPG group on the Microsoft Dynamics CRM server
The CRM_WPG group on the Microsoft Dynamics CRM server
The PrivUserGroup in Active Directory
The SQLAccessGroup group in Active Directory
To do this, follow these steps:
On the Microsoft Dynamics CRM server, click Start, right-click My Computer, and then click Manage.
Expand Local Users and Groups, and then click Groups.
Double-click the Administrators group, and then add the administrator account as a member.
Double-click the IIS_WPG group, and then add the administrator account as a member.
Double-click the CRM_WPG group, and then add the administrator account as a member.
Click Start, click Run, type iisreset, and then click OK.
On the domain controller, click Start, click Run, type dsa.msc in the Open box, and then click OK.
Right-click the PrivUserGroup group, and then click Properties.
Click the Members tab.
Click Add, add the user who is running the Microsoft CRM Workflow Service and the CRMAppPool application pool, and then click OK.
Note If the user already exists, go to the next step.
Right-click the SQLAccessGroup group, and then click Properties.
Click the Members tab.
Click Add, add the user who is running the Microsoft CRM Workflow Service and the CRMAppPool application pool, and then click OK.
Note If the user already exists, no changes are necessary. If there are multiple domain controllers, it may take some time for the changes to replicate to all the servers.
Note When you log on to Microsoft Dynamics CRM, you may receive the following error message:
You are not authorized to view this page. HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
If you receive this error message, complete the steps in Microsoft Knowledge Base article 917818.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
917818
(http://support.microsoft.com/kb/917818/
)
Error message when you try to access the Microsoft Dynamics CRM Web site: "You are not authorized to view this page"
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
This issue may occur when you have a callout that runs a workflow rule that resembles the following example.
// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Create the request.
ExecuteWFProcessRequest request = new ExecuteWFProcessRequest();
request.ProcessId = new Guid("{8DC95CE2-1A27-4CEA-9E6A-8F6BCC4B658D}");
request.EntityMoniker = new Moniker();
request.EntityMoniker.Id = createdId;
request.EntityMoniker.Name = EntityName.account.ToString();
// Execute the request.
ExecuteWFProcessResponse response = (ExecuteWFProcessResponse) service.Execute(request);