20 Ağustos 2009 Perşembe

Error on Entity Creation :'(

If you are getting exceptions like:
EntityService.Create caught exception: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated

ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.

You should configure server's registry settings. These errors are related with Sql connection and execution timeout problem. And Oscar goes to Solution:

Create a *.reg file and register to your system:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM]
"OLEDBTimeout"=dword:00086400
"ExtendedTimeout"=dword:01000000


Or:
To registry;
Create 2 DWord typed key "OLEDBTimeout" and "ExtendedTimeout" and set their values to "86400" and "1000000" (decimal). Reset IIS and be Happy.

Siz nasıl diyor:

Eğer ki şu şekil hatalar alıyorsanız ki bunlar “iflit” oldugum hatalardır. (iflit’I cümle içinde kullandıgım ve ingilizce tercümesini de yapmadıgım icin güçlüyüm, cesurum, hazırım.(bkz:komando))

EntityService.Create caught exception: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
The statement has been terminated

ExecuteNonQuery requires an open and available Connection. The connection's current state is closed.

Temelde bu hatalar sql bağlantıları ile ilgili. Timeout hatası alması yüzünden isteğinizi yerine getiremeyen CRM ve şu şekil bir çözümle bu soruna bir dur demektedir.

Ister aşagıda italık olarak yazdıgım kısmı *.reg file olarak kaydedin ve çift tıklamak suretiyle bırakın sisteminize nüfüz etsin:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM]
"OLEDBTimeout"=dword:00086400
"ExtendedTimeout"=dword:01000000

Yada: Registry açılır; “HKEY_LOCAL_MACHINE > Software > Microsoft > MSCRM” altına
“OLEDBTimeout” ve “ExtendedTimeout” isminde iki Dword anahtar ve bunlara da sırasıyla “86400” ve “1000000” decimal değerleri atanır. IIS reset’I müteakip Mutlu olunur.