What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 58478 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET AJAX > Iam getting data store exception was unhandled by user code ...
Prasanna64

Iam getting data store exception was unhandled by user code

Replies: 0 | Posted by: Prasanna64 on 5/10/2012 | Category: ASP.NET AJAX Forums | Views: 610 | Status: [Member] | Points: 10  


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


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

  No reply found.


Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/21/2013 11:04:29 AM