是不是这个问题?我也在找高手回答,可惜高手都从来不进这里面来逛的。。。。
[Gameserver: Server is now running! ]
[Gameserver: Type //help for command list ]
@Gameserver: Error::System.InvalidOperationException: ExecuteNonQuery requires an
open and available Connection. The connection's current state is closed.
at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)
at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlC
ommand command)
at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, Strin
g methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Game.Systems.MsSQL.InsertData(String command)
UPDATE users SET online='0'
@Gameserver: Error::System.InvalidOperationException: ExecuteNonQuery requires an
open and available Connection. The connection's current state is closed.
at System.Data.SqlClient.SqlConnection.GetOpenConnection(String method)
at System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlC
ommand command)
at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, Strin
g methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Game.Systems.MsSQL.InsertData(String command)
UPDATE server SET users_current='0'