none
Getting Exception of type 'System.ExecutionEngineException' was thrown while connecting oracle DB RRS feed

  • Question

  • Hi 

    I am trying to open connection to the oracle database by calling conn.open() method and I am getting this following exception. What does it mean and how could I resolve this.

    "Exception of type 'System.ExecutionEngineException' was thrown"

    Thank you. Any help will be appreciated.


    Best
    • Moved by Cindy Meister MVP Tuesday, October 19, 2010 8:55 PM data connection, not VSTO (From:Visual Studio Tools for Office)
    Tuesday, October 19, 2010 7:49 PM

Answers

  • After several trials I took a step back and found that Oracle.DataAccess.dll has been corrupted. I dont know why it happened. So I added new Oracle dll. It works like charm now. 

    Thanks Miha..

    • Marked as answer by liurong luo Monday, October 25, 2010 7:29 AM
    Thursday, October 21, 2010 6:08 PM

All replies

  • Check out InnerException if there is any.

    Miha Markic [MVP C#] http://blog.rthand.com
    Wednesday, October 20, 2010 9:14 AM
  • Thanks Miha,

    I didn't know InnerException exist before. I investigated it and understood like the InnerException would occur if there are more than one try block in any method.(Please correct me if I am wrong). But in my code I am still not entering into my try block. 

    public static DataTable GetList(OracleConnection conn, string case, string name) 

            {

                string oracleCommand = "";

                conn.Open();

               try{  // some code}

           }

    The exception is occurring at conn.open(). 


    Best
    Wednesday, October 20, 2010 11:46 AM
  • The InnerException is a property of Exception where more detailed (or original) exception might be, so you might, or better, you should wrap conn.Open in a try catch block always and inspect the InnerException property. ( you can inspect it when VS throws it at you even if it is not inside a try-catch block but not wrapping Open() in the try-catch block is simply a bad practice).

    Miha Markic [MVP C#] http://blog.rthand.com
    • Proposed as answer by liurong luo Monday, October 25, 2010 7:30 AM
    Wednesday, October 20, 2010 12:14 PM
  • Yeah 

    I wrapped connection open in try catch block. I found nothing. But opened even viewer . It is saying ".NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error "

    What does it mean?


    Best
    Wednesday, October 20, 2010 1:32 PM
  • Anyone any thoughts/ Suggestions?
    Best
    Thursday, October 21, 2010 1:43 PM
  • After several trials I took a step back and found that Oracle.DataAccess.dll has been corrupted. I dont know why it happened. So I added new Oracle dll. It works like charm now. 

    Thanks Miha..

    • Marked as answer by liurong luo Monday, October 25, 2010 7:29 AM
    Thursday, October 21, 2010 6:08 PM