Context ConnectionState.Broken

4 posts, 0 answers
  1. adi
    adi avatar
    79 posts
    Member since:
    Feb 2007

    Posted 19 Dec 2012 Link to this post

    Hi,

    I was wondering that my context connection becomes a broken state. What could be the reason? How can I handle this? If I want to close and reopen, I always get an exception Cannot call 'open or close' on a context bound connection.
    Regards, adi
  2. Ady
    Admin
    Ady avatar
    589 posts

    Posted 21 Dec 2012 Link to this post

    Hi Andreas,

     How are you using this context and the connection you obtain from it? Opening and closing a context bound connection is managed internally by OpenAccess. Can you reproduce this 'broken' state consistently. If yes, can you please send me the code to do that?
    If the connection state is broken you should dispose this context instance and create a new one.
    If you can provide me with more details on what you want to achieve I could provide you with an appropriate solution.

    Kind regards,
    Ady
    the Telerik team
    Q3'12 SP1 of OpenAccess ORM packs Multi-Table Entities mapping support. Check it out.
  3. DevCraft banner
  4. adi
    adi avatar
    79 posts
    Member since:
    Feb 2007

    Posted 02 Jan 2013 Link to this post

    Hi Ady,
    No, I can't reproduce this issue consistently. So I decided to check the context state before I use it.

    Regards,
    Adi
  5. Ady
    Admin
    Ady avatar
    589 posts

    Posted 03 Jan 2013 Link to this post

    Hello Andreas,

     What do you mean by 'check the context state'? Can you provide me with the code you are using so that I can verify if thats ok?

    Kind regards,
    Ady
    the Telerik team
    Q3'12 SP1 of OpenAccess ORM packs Multi-Table Entities mapping support. Check it out.
Back to Top