I think I may why this is happening but I am a little fuzzy as to what
the solution should be as I am somewhat new to all of this.
My simplified code that generates the error is:
public static string getCartCookieVa lue()
{
if (Request.Cookie s["tepcart"] != null)
{
using (CartServiceCli ent client = new CartServiceClie nt())
{
retval = client.getCartI d(Request.Cooki es["tepcart"].Value);
client.Close();
}
}
return retval;
}
the solution should be as I am somewhat new to all of this.
My simplified code that generates the error is:
public static string getCartCookieVa lue()
{
if (Request.Cookie s["tepcart"] != null)
{
using (CartServiceCli ent client = new CartServiceClie nt())
{
retval = client.getCartI d(Request.Cooki es["tepcart"].Value);
client.Close();
}
}
return retval;
}
Comment