C# (提供程序:共享内存提供程序,错误:0-管道的另一端没有进程。)

C# (提供程序:共享内存提供程序,错误:0-管道的另一端没有进程。),c#,sql-server-2012,.net-4.5,C#,Sql Server 2012,.net 4.5,我有时在客户机上遇到这个错误。有人能帮忙吗?这是什么原因造成的 A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) 在这里,我只是从数据库中读取一些数据,并使用数据适配器填充数据表。我正在使用SQL server

我有时在客户机上遇到这个错误。有人能帮忙吗?这是什么原因造成的

A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)
在这里,我只是从数据库中读取一些数据,并使用数据适配器填充数据表。我正在使用SQL server 2012和dotNet 4.5

堆栈跟踪

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParserStateObject.WriteSni()
at System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)
at System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
at System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at XXX.DatabaseFramework.SQLServer.SQLServerDBProvider.LoadDataTable()
使用以下代码导致了此异常

using (SqlDataAdapter dataAdapter = new SqlDataAdapter(this.Command)) { 
DataTable dataTable = new DataTable(); 
dataAdapter.Fill(dataTable);
return dataTable; }

您能发布导致错误的代码吗?@acutesoftware:添加了调用代码