Server Error in '/' Application.

Keyword not supported: 'server connection;              database'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Keyword not supported: 'server connection;              database'.

Source Error:


Line 174:      public override List<ArticleDetails> GetPublishedArticles(DateTime currentDate, int pageIndex, int pageSize)
Line 175:      {
Line 176:         using (SqlConnection cn = new SqlConnection(this.ConnectionString))
Line 177:         {
Line 178:            SqlCommand cmd = new SqlCommand("wb_Articles_GetPublishedArticles", cn);

Source File: g:\pleskvhosts\webbodhi.com\httpdocs\App_Code\DLL\SqlClient\SqlArticlesProvider.cs    Line: 176

Stack Trace:


[ArgumentException: Keyword not supported: 'server connection;              database'.]
   System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +6073334
   System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +100
   System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +61
   System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +29
   System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +169
   System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key) +63
   System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +93
   System.Data.SqlClient.SqlConnection..ctor(String connectionString, SqlCredential credential) +44
   System.Data.SqlClient.SqlConnection..ctor(String connectionString) +37
   WB.WebBodhi.DAL.SqlClient.SqlArticlesProvider.GetPublishedArticles(DateTime currentDate, Int32 pageIndex, Int32 pageSize) in g:\pleskvhosts\webbodhi.com\httpdocs\App_Code\DLL\SqlClient\SqlArticlesProvider.cs:176
   WB.WebBodhi.BLL.Articles.Article.GetArticles(Boolean publishedOnly, Int32 startRowIndex, Int32 maximumRows) in g:\pleskvhosts\webbodhi.com\httpdocs\App_Code\BLL\Articles\Article.cs:406
   WB.WebBodhi.BLL.Articles.Article.GetArticles(Boolean publishedOnly, Int32 categoryID, Int32 startRowIndex, Int32 maximumRows) in g:\pleskvhosts\webbodhi.com\httpdocs\App_Code\BLL\Articles\Article.cs:427

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +168
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +105
   System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +682
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1661
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +22
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +151
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
   System.Web.UI.WebControls.GridView.DataBind() +10
   WB.WebBodhi.UI.Controls.ArticleListing.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\webbodhi.com\httpdocs\Controls\ArticleListing.ascx.cs:145
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0