A while ago while working on data export from a Microsoft CRM 3.0 server, I ran into this issue. I had quite a hard time finding a solution for it, anywhere, so I thought I would post it here in case anyone else comes across the issue . I hope no one is still using MS CRM 3… anyways.

Server Error in ‘/’ Application.

________________________________________

Exception from HRESULT: 0×80044151.

Description: An unhandled exception occurred during the execution of the

current web request. Please review the stack trace for more information about

the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Exception

from HRESULT: 0×80044151.

I figured out that this was a SQL timeout error… probably because I was trying to pull too much data with that query. Anyways, here is how I worked around it:

  1. In the registry editor of the machine hosting your Microsoft SQL server, open My Computer/HKEY_LOCAL_MACHINE/SOFTWARE/MICROSOFT/MSCRM/
  2. If it does not already exist, create a DWORD value named OLEDBTimeout with a Hexidecimal base. Set the value data to 180 (this is in seconds… 180 = 3 minutes. Default is 30, implicit if there is no OLEDBTimeout DWORD already in existence)
  3. In Command Prompt, type in ‘cd %windir%/system32&’
  4. Type in the command ‘cscript iisapp.vbs /a CrmAppPool /r’ (this resets the Application Pool for the CRM, necessary in order to the changes to take effect).

Hopefully this helps somebody out there, somewhere.

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to StumbleUpon