I am using Paypal Starter Kit and I receive the error below when I am browsing the site... Sometimes i get this error sometimes i don't .... its very inconsitent behaviour
System.ArgumentException: Keyword not supported: ',server'.
Line 59: throw new Exception("This product is no longer active");
Line 60: } else {
Line 61: ShoppingCartProvider.Instance.CartAddItem(userName, productID, quantity, modelName, modelNumber, description, price, sku,weight);
Line 62: }
Line 63: }
Stack Trace:
[ArgumentException: Keyword not supported: ',server'.]
System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +1406482
System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +102
System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +52
System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +24
System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +125
System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +56
System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +4
System.Data.SqlClient.SqlConnection..ctor(String connectionString) +21
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +129
Commerce.Providers.SqlShoppingCartProvider.CartAddItem(String userName, Int32 productID, Int32 quantity, String modelName, String modelNumber, String description, Double price, String sku, Double weight) in D:\@My Projects\PayPal\Commerce Template 2.0\CommerceStarterKit09\Commerce.ShoppingCartProvider\SqlShoppingCartProvider.cs:66
ShoppingCartManager.AddItem(Int32 productID, Int32 quantity, String modelName, String modelNumber, String description, Double price, String sku, Double weight) in e:\web\larchewoodp\htdocs\App_Code\BLL\ShoppingCartManager.cs:61
ProductPage.AddItemToCart() in e:\web\larchewoodp\htdocs\Product.aspx.cs:89
ProductPage.lnkAddToCart_Click(Object sender, EventArgs e) in e:\web\larchewoodp\htdocs\Product.aspx.cs:75
System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +105
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
|
Connection string in web.config
<connectionStrings><clear/><!--This is the connection to your STORE -->
<add name="CommerceTemplate" connectionString="Server=xxx;Initial Catalog=xxx;user id=xxxxx; Password=xxxx;" providerName="System.Data.SqlClient"/><!--This is the connection to your Membership System--><add name="LocalSqlServer" connectionString="Server=xxxxx;Initial Catalog=xxxxx;user id=xxxxxxx; Password=xxxxxx;" providerName="System.Data.SqlClient"/></connectionStrings>