"Specified slot number was invalid" when open OracleConnection

Last post 07-31-2007 1:10 PM by tlstanlet. 1 replies.

Sort Posts:

  • "Specified slot number was invalid" when open OracleConnection

    06-07-2007, 10:41 PM
    • Member
      point Member
    • lectrung
    • Member since 09-11-2006, 3:53 AM
    • Posts 1

    Hi All,

    OracleConnection ocon = new OracleConnection(ConnectionString);

    ocon.Open();

    I got the error message:

    System.ArgumentException: Specified slot number was invalid.\r\n  
    at System.LocalDataStoreMgr.ValidateSlot(LocalDataStoreSlot slot)\r\n  
    at System.Threading.Thread.GetData(LocalDataStoreSlot slot)\r\n  
    at Oracle.DataAccess.Client.OracleConnection.get_InternalContextConnection()\r\n

    How to fix this error?

    Thanks

    Trung

  • Re: "Specified slot number was invalid" when open OracleConnection

    07-31-2007, 1:10 PM
    • Member
      2 point Member
    • tlstanlet
    • Member since 07-31-2007, 11:30 AM
    • Posts 1

    If you have found the problem, for others who might get this error.

    It is likey a dll conflict. Some assemblies are using one version of the dll and others another. For example the ODP provider Oracle.DataAccess version 10.1.0.400 in one and 10.2.0.200 in another. Be sure you have referenced the same dll when adding references to projects IE namespaces.

    Filed under: , ,
Page 1 of 1 (2 items)