2014-09-22 77 views
0

'/ Court Case'應用程序中的服務器錯誤。

關鍵字不支持:'userid'。在我的網站中打開頁面時出現錯誤

描述:執行當前Web請求期間發生未處理的異常。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。

異常詳細信息: System.ArgumentException:不支持的關鍵字:'userid'。

源錯誤:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

堆棧跟蹤:

[ArgumentException: Keyword not supported: 'userid'.] 
    System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +6363422 
    System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +122 
    System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +113 
    System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +35 
    System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +221 
    System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +64 
    System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) +44 
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +150 
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +27 
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +261 
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82 
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +95 
    System.Web.UI.Control.EnsureChildControls() +146 
    System.Web.UI.Control.PreRenderRecursiveInternal() +61 
    System.Web.UI.Control.PreRenderRecursiveInternal() +224 
    System.Web.UI.Control.PreRenderRecursiveInternal() +224 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394 

版本信息: Microsoft .NET Framework版本:2.0.50727.8009; ASP.NET版本:2.0.50727.8010

回答

1

連接到數據庫的連接字符串出現故障。它包含userid,而它應該是user id(之間有空格)。

查看connectionstrings.com的例子。

+0

感謝它的工作.. – 2014-09-22 06:12:02