Ver Mensaje Individual
  #1  
Antiguo 25-03-2011
david.rguez david.rguez is offline
Miembro
 
Registrado: jun 2006
Ubicación: Zamora, la bien cercada
Posts: 104
Reputación: 18
david.rguez Va por buen camino
Error en un servidor concreto con una aplicación web

Estoy desarrollando una aplicación web muy sencilla en aspx + c# que permita a un cliente autentificarse en la web, realizar un pedido y que éste quede grabado en la base de datos del servidor.

Pues bien, está funcionando, hace los pedidos correctamente; todas las pruebas que he realizado en mi servidor (tanto en localhost como accediendo desde Internet mediante IP) van perfectamente.

Ahora bien, le instalo la aplicación en el servidor del cliente, y cuando va a finalizar el pedido, lo graba correctamente pero, al recargar la página: salta el siguiente error:

Código:
[InvalidOperationException: Ya hay un DataReader abierto asociado a este comando, debe cerrarlo primero.]
   System.Data.SqlClient.SqlInternalConnectionTds.ValidateConnectionForExecute(SqlCommand command) +4846116
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +23
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +144
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior  cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String  method, DbAsyncResult result) +87
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior  cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String  method) +32
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
   System.Data.SqlClient.SqlCommand.ExecuteReader() +89
   pedidos.recargarTabla() +128
   pedidos.button5_Click(Object sender, EventArgs e) +857
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
He repasado todos los dataReader de la página y todos se cierran tras su utilización... y reitero que en mi servidor funciona todo correctamente.

¿Alguna idea de qué puede estar pasando?

Gracias
Responder Con Cita