Concurrency problem

Posts   
 
    
Gaston
User
Posts: 10
Joined: 24-Jul-2005
# Posted on: 11-Jan-2006 20:59:17   

I'm writing an ASP.NET application, with a sql-server database. The application is a port from a windows application. I have a routine for saving an employee. This works in windows forms, but in ASP.NET I get this error:

Exception Details: SD.LLBLGen.Pro.ORMSupportClasses.ORMConcurrencyException: During a save action an entity's update action failed. The entity which failed is enclosed

I don't know how to solve this... I'm using no concurrency or whatever and I'm the only user of the system...

Thanks!

Gaston Vaessen

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 12-Jan-2006 02:49:13   

Could you post more about what is being done in the winforms app and what is being done in the web app. That may help shed some light on what this issue could be.

Gaston
User
Posts: 10
Joined: 24-Jul-2005
# Posted on: 14-Jan-2006 20:01:18   

Problem solved! What was wrong: ' I used Medewerker.FetchUsingPK(medewerkerId) with a private variable. But asp.NET doesn't store that between the request, so medewerkerId was 0. And there didn't exist a record with medewerkerId 0... but what I don't understand is why I get a concurrency error...?

Thanks!