Dynamics CRM in the Field

Information from the Microsoft Dynamics CRM PFE team working in the field

Microsoft Dynamics CRM Timeout settings

Microsoft Dynamics CRM Timeout settings

  • Comments 3

There are a handful of timeout settings that can affect Dynamics CRM.  In most situations the default setting is sufficient for these and they don’t need to be changed, however, there are times (such as during an upgrade) when these might need to be adjusted to let a certain process complete, or if a user is waiting too long for a process only to fail in the end--these settings can be adjusted; they can be confusing since many have different defaults and are in different units.  Below are some of the timeout settings available with a little more detail to help clear up the confusion.

  1. Registry on CRM application server(s)
    1. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM\OLEDBTimeout
      1. In seconds
      2. The OLEDBTimeout value controls the SQL time-out value that is used for a single SQL query
      3. Default is 30 seconds
    2. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM\ExtendedTimeout
      1. In milliseconds
      2. The ExtendedTimeout value controls the ASP.NET time-out value
      3. Default is 1,000,000
    3. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM\NormalTimeout
      1. In milliseconds
      2. Specifies the SOAP call timeout for most operations
      3. Default is 300,000
  2. Web.config
    1. <httpRuntime executionTimeout="300" />
      1. .NET 3.0: “timespan” attribute.  The default is “00:01:50” (110 seconds)
      2. .NET 3.5 and 4.0: an integer in seconds.  Default is 110 seconds.
      3. Specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.
  3. IIS/ASP.NET configuration
    1. IIS 6.0 -> Website Properties -> ASP.NET tab -> Edit Configuration button -> Application tab -> Request execution timeout (seconds)
      1. Related to this type of situation in CRM 4.0: http://blogs.msdn.com/b/crm/archive/2008/11/20/asp-net-2-0-50727-0-warning-event-id-1309-due-to-request-time-out.aspx
  4. When using the CRM SDK, there are also timeout settings that can be set via custom code:
    1. CRM 4.0 example:
      1. CrmService service = new CrmService();
      2. service.Timeout = 300;
      3. In milliseconds and default is 100,000
    2. CRM 2011:
      1. ServiceProxy.Timeout property (Timespan)
  • I am getting the 1309 error with Dynamics CRM v4 on a Windows 2008 server using IIS 7.0.  How is the ASPX timeout set in IIS 7.0?  

    Thanks!

    Linda.

  • Are there any Timeout that can be set for the MSSQL Express 2008 on the Outlook Client? We can see that it sometimes gets timeout after 180 sec..

  • If you ever see timeout errors like the following in the CRM platform trace files, you can adjust those settings in CRM 2011 OnPremise deployments.  CRM Online is limited to the default setting of 2 minutes.  Ideally the sandboxed plugins code should be reviewed to improve the performance so they do not time out.

    errorCode: 0x80044172; message: The plug-in execution failed because the operation has timed-out at the Sandbox Host.

    errorCode: 0x80044171; message: The plug-in execution failed because the operation has timed-out at the Sandbox Client.

    HKLM\Software\Microsoft\MSCRM\SandboxClientOperationTimeoutInSec as a REG_DWORD key with a value in decimal greater than 120 (default is 120, which is equivalent to 2 minutes).

    HKLM\Software\Microsoft\MSCRM\SandboxHostOperationTimeoutInSec as a REG_DWORD key with a value in decimal greater than 120 (default is 120, which is equivalent to 2 minutes).  

    HKLM\Software\Microsoft\MSCRM\SandboxWorkerOperationTimeoutInSec as a REG_DWORD key with a value in decimal greater than 120 (default is 120, which is equivalent to 2 minutes).  

    These key values could be adjusted to a value between 300 decimal to 600 decimal to increase the respective timeout to 5 or to 10 minutes.

Page 1 of 1 (3 items)
Leave a Comment
  • Please add 5 and 1 and type the answer here:
  • Post