Unanswered Try Catch is ignored on insert

  • Tuesday, March 22, 2011 12:21 PM
     
     

    I have a LINQ insert to record errors into an error table.  The insert is inside a try catch but the catch is not hit the error just stops the debuger.  What can I do to get the try to work?

    I am using VS2008 sp1 with sqlserver express 2008 r2. 

All Replies

  • Tuesday, March 22, 2011 2:37 PM
     
     
    It would help to see the code you are using.
    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
  • Thursday, March 24, 2011 2:06 AM
    Moderator
     
     

    Hello CraigInb,

     

    Welcome to the MSDN Forum!

    Just like Fernandoo said, could you please show us more details about your issue, like the code? We are looking forward to hearing from you!

     

    Have a nice day,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Sunday, May 08, 2011 3:32 AM
     
     
    Do you commit the changes outside the try-catch, by chance?