This is a migrated thread and some comments may be shown as answers.

Problem with updating a instance

1 Answer 66 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christian
Top achievements
Rank 1
Christian asked on 19 Jan 2009, 12:38 PM
Hi,

in a complex data model I have one class with problems to update a instance. There is no problem to insert a new instance. But when I try to update a string property in the class I get an error message, that a active transaction is necessary. The instance has the value '-1' for OpenAccessEnhancedFlags and the value  '{SM@34684851 696865275-1 cacheKey: CacheEntryBase@18 oid 696865275-1 inProcessList: False' for OpenAccessEnhancedStateManager. All other classes in my model works fine.

Thanks in advance for any hint.
Christian

1 Answer, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 19 Jan 2009, 03:45 PM
Hi Christian,
Did you check if there is really a running transaction?

You can check it by checking: scope.Transaction.Level == 1

Greetings,
Jan Blessenohl
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Development (API, general questions)
Asked by
Christian
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or