That exception is caused becuase you're calling OpenConnection() on an already open connection. Are you manually calling Open anda Close on the Connection or are you letting IBatisNet manage that? Are you able to track down where exactly in your code the error is being generated? Perhaps you can test to see if the connection is open and try to close it before your code tries to access the database:
if (DaoManager.GetInstance().IsDaoSessionStarted() == true) { try { DaoManager.GetInstance().CloseConnection(); } catch(Exception ex) { log.Debug("Unable to close connection.", ex); } } - Ron --- Jean Guillaume LALANNE <[EMAIL PROTECTED]> wrote: > Hi, > > I have built up an application based on IBATIS.NET. Everything went > perfectly during the qualification and now I get the following error > message > just before going production: > > "DaoManager could not invoke OpenConnection(). A connection is > already > started. Call CloseConnection first." > > I don't understand where I am wrong. > > Do you already have seen such kind of error? > > Is there a way to know if a connection is already opened? > > Any help would be really appreciated because I am not in a good > situation > with my boss. > > Regards > > Jean-Guillaume LALANNE > > > >