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 21:       public override List<CategoryDetails> GetCategories()
Line 22:       {
Line 23:          using (SqlConnection cn = new SqlConnection(this.ConnectionString))
Line 24:          {
Line 25:             SqlCommand cmd = new SqlCommand("wb_Articles_GetCategories", cn);

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

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.GetCategories() in g:\pleskvhosts\webbodhi.com\httpdocs\App_Code\DLL\SqlClient\SqlArticlesProvider.cs:23
   WB.WebBodhi.BLL.Articles.Category.GetCategories() in g:\pleskvhosts\webbodhi.com\httpdocs\App_Code\BLL\Articles\Category.cs:109

[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) +91
   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.WebControls.ListControl.OnDataBinding(EventArgs e) +291
   System.Web.UI.WebControls.ListControl.PerformSelect() +38
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +76
   WB.WebBodhi.UI.Controls.ArticleListing.Page_Load(Object sender, EventArgs e) in g:\pleskvhosts\webbodhi.com\httpdocs\Controls\ArticleListing.ascx.cs:133
   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