Iam getting data store exception was unhandled by user code

Posted by Prasanna64 under ASP.NET AJAX on 5/10/2012 | Points: 10 | Views : 1845 | Status : [Member] | Replies : 0
Hi all,
In this code am getting an error

private void CommitTransaction()
{
if (HttpContext.Current.Session == null)
{
return;
}

EntitiesModel dbContext =
HttpContext.Current.Session[CONTEXT_KEY] as EntitiesModel;
if (dbContext != null)
{
dbContext.SaveChanges();
}
}
in dbContext.SaveChanges() am getting an exceptiom

Am waiting for the reply




Responses

(No response found.)

Login to post response