, benji_dv Un jour, un client fut confronté à ceci :
"Entity Framework and Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
Explicite ! non ?
La solution : Paramétrer le Command Timeout de l'object context ...
var ctx = new DataContext() { CommandTimeout = 90 }; // DataContext est ma classe context EF
Du coup, le temps d'exécution des commandes SQL passe à 90 secondes (au lieu des 30 secondes par défaut).
Pour information : il est conseillé de rendre cette valeur paramétrable (config)...
http://msdn.microsoft.com/fr-fr/library/system.data.objects.objectcontext.commandtimeout.aspx
Voilou !
Cet article n'a pas de Commentaires pour le moment...
Vous devez être identifié pour poster un commentaire.
| Lun | Mar | Mer | Jeu | Ven | Sam | Dim |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 |
Copyright © 2000-2012 - www.developpez.com