鈥?鈥濆簲鐢ㄧ▼搴忎腑鐨勬湇鍔″櫒閿欒銆侟hr width=100% size=1 color=silver>

鍦ㄤ笌 SQL Server 寤虹珛杩炴帴鏃跺嚭鐜颁笌缃戠粶鐩稿叧鐨勬垨鐗瑰畾浜庡疄渚嬬殑閿欒銆傛湭鎵惧埌鎴栨棤娉曡闂湇鍔″櫒銆傝楠岃瘉瀹炰緥鍚嶇О鏄惁姝g‘骞朵笖 SQL Server 宸查厤缃负鍏佽杩滅▼杩炴帴銆 (provider: 鍛藉悕绠¢亾鎻愪緵绋嬪簭, error: 40 - 鏃犳硶鎵撳紑鍒 SQL Server 鐨勮繛鎺?

璇存槑: 鎵ц褰撳墠 Web 璇锋眰鏈熼棿锛屽嚭鐜版湭澶勭悊鐨勫紓甯搞€傝妫€鏌ュ爢鏍堣窡韪俊鎭紝浠ヤ簡瑙f湁鍏宠閿欒浠ュ強浠g爜涓鑷撮敊璇殑鍑哄鐨勮缁嗕俊鎭€

寮傚父璇︾粏淇℃伅: System.Data.SqlClient.SqlException: 鍦ㄤ笌 SQL Server 寤虹珛杩炴帴鏃跺嚭鐜颁笌缃戠粶鐩稿叧鐨勬垨鐗瑰畾浜庡疄渚嬬殑閿欒銆傛湭鎵惧埌鎴栨棤娉曡闂湇鍔″櫒銆傝楠岃瘉瀹炰緥鍚嶇О鏄惁姝g‘骞朵笖 SQL Server 宸查厤缃负鍏佽杩滅▼杩炴帴銆 (provider: 鍛藉悕绠¢亾鎻愪緵绋嬪簭, error: 40 - 鏃犳硶鎵撳紑鍒 SQL Server 鐨勮繛鎺?

婧愰敊璇?


琛 94:         {
琛 95: 
琛 96:             throw;
琛 97:         }
琛 98:         finally

婧愭枃浠碟 e:\freehost\shanghaimaijie\web\APP_Code\GoproNewsDBHelper.cs    琛孃 96

鍫嗘爤璺熻釜:


[SqlException (0x80131904): 鍦ㄤ笌 SQL Server 寤虹珛杩炴帴鏃跺嚭鐜颁笌缃戠粶鐩稿叧鐨勬垨鐗瑰畾浜庡疄渚嬬殑閿欒銆傛湭鎵惧埌鎴栨棤娉曡闂湇鍔″櫒銆傝楠岃瘉瀹炰緥鍚嶇О鏄惁姝g‘骞朵笖 SQL Server 宸查厤缃负鍏佽杩滅▼杩炴帴銆 (provider: 鍛藉悕绠¢亾鎻愪緵绋嬪簭, error: 40 - 鏃犳硶鎵撳紑鍒 SQL Server 鐨勮繛鎺?]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4890855
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean withFailover) +376
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean withFailover) +191
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +1349
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +225
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +431
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   GoproNewsDBHelper.reDt(String SqlStr) in e:\freehost\shanghaimaijie\web\APP_Code\GoproNewsDBHelper.cs:96
   M_guanyumaijie.IsCount1() in e:\freehost\shanghaimaijie\web\M_guanyumaijie.aspx.cs:83
   M_guanyumaijie.Page_Load(Object sender, EventArgs e) in e:\freehost\shanghaimaijie\web\M_guanyumaijie.aspx.cs:27
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


鐗堟湰淇℃伅: Microsoft .NET Framework 鐗堟湰:2.0.50727.8762; ASP.NET 鐗堟湰:2.0.50727.8762