Oracle.DataAccess 2.112.2.0 ,oracleconnection create need 20 seconds?

Everybody,
I want to use odp.net to connect the timesten in-memory database in vs2008 vc#.net. However, the creation of OracleConnection last 20 seconds.
Code:
Stopwatch sw = new Stopwatch(); sw.Start();
OracleConnection conn = new OracleConnection();//last 20 seconds
sw.Stop();
Console.WriteLinesw.ElapsedMilliseconds.ToString());
Could someone encounts the same problem? Or that condition is normal?
Thank you very much.

Hi,
The only thing that jumps out within your problem description is that connections are being increased every 5 minutes. Are you sure its every 5 minutes and not 3 minutes which is the timing interval used by the Connection Pool facility to perform connection pool maintenance. If this occurs even when the application is idle then you could be running into the following known issue filed against 11.2.0.1.0 and fixed in 11.2.0.1.2.
Bug 9711600 - CONNECTIONS INCREASE BEYOND MAX POOL SIZE EVERY 3 MINUTE
This is specific to using the option CommandBehavior.CloseConnection when calling execute reader. Are you using this option and then also closing the connection in code before the datareader object is closed, if so you may be hitting this bug. You can also generate an ODP trace at level 15 of the behavior and if you see negative pool counts, that is also a diagnostic that points to this bug.
This is fixed in 11.2.0.1.0 Patch 3 or later for x64. If you have support, I recommend you open a service request to verify if this is your issue and if a patch set may help you.
Regards
Jenny B.

Similar Messages

  • Oracle.DataAccess 2.112.1.0 - Connection Pool Problem

    Hi,
    Oracle.DataAccess 2.112.1.0 is having connection pool problem. The no. of TCP connections to Oracle database keep increasing untill the server's session run out of limit. My application created connections, use them, close them, and dispose them properly. When using previous Oracle.DataAccess 2.111.6.20, the no. of TCP connections do not increase.
    My database connection string has "Min Pool Size = 3 and Max Pool Size = 150".
    With 2.111.6.20 version, TCP connection stays at 3.
    With 2.112.1.0, TCP connection keep increasing for every 5 minutes. I've tried to disable Self Tuning, but still can't prevent the connections from increasing.
    Later today, I downloaded Oracle.DataAccess 2.112.1.2 (it comes with ODAC 11.2.0.1.2) and test again, the problem is resolved... no more connection increases... but.... it is only for 32 bit Windows.
    Unfortunately, there is no Oracle.DataAccess 2.112.1.2 for 64 bit Windows Server 2008.
    May I know how can i resolve this problem on 64bit Window installed with Oracle 11g R2 client, which comes with Oracle.DataAccess 2.112.1.0, which has serious problems...(according to this 11.2 ODP.NET causing test runner failures )
    Many thanks for your time and answers!
    Edited by: user1502907 on 04-Sep-2010 23:01

    Hi,
    The only thing that jumps out within your problem description is that connections are being increased every 5 minutes. Are you sure its every 5 minutes and not 3 minutes which is the timing interval used by the Connection Pool facility to perform connection pool maintenance. If this occurs even when the application is idle then you could be running into the following known issue filed against 11.2.0.1.0 and fixed in 11.2.0.1.2.
    Bug 9711600 - CONNECTIONS INCREASE BEYOND MAX POOL SIZE EVERY 3 MINUTE
    This is specific to using the option CommandBehavior.CloseConnection when calling execute reader. Are you using this option and then also closing the connection in code before the datareader object is closed, if so you may be hitting this bug. You can also generate an ODP trace at level 15 of the behavior and if you see negative pool counts, that is also a diagnostic that points to this bug.
    This is fixed in 11.2.0.1.0 Patch 3 or later for x64. If you have support, I recommend you open a service request to verify if this is your issue and if a patch set may help you.
    Regards
    Jenny B.

  • Oracle.DataAccess 4.112.2.0 and EnterpriseLibrary 5.0.414.0

    Hello,
    I use ODP.NET and version 4.1 of the Enterprise Library, vs 2008. And all is OK.
    Now, migrate using ODP.NET Oracle.DataAccess 4.112.2.0 and version 5.0.414.0 of the Enterprise Library, vs 2010, .net 4.0.
    Following a recent upgrade from version 4.1 to 5.0 of the Enterprise Library, once we get the following error:
    "The type Database cannot be constructed. You must configure the container to supply this value."
    Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type Database, key "ConnectionStrings.Oracle.xxx" ---> Microsoft.Practices.Unity.ResolutionFailedException: Resolution of the dependency failed, type = "Microsoft.Practices.EnterpriseLibrary.Data.Database", name = "ConnectionStrings.Oracle.xxx".
    Exception occurred while: while resolving.
    Exception is: InvalidOperationException - The type Database cannot be constructed. You must configure the container to supply this value.
    References EntLib Forum: http://entlib.codeplex.com/discussions/215290
    any solution about it ??
    my config
    <configSections>
    <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=709072f976b4c05b"/>
    <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=709072f976b4c05b" />
    </configSections>
    <dataConfiguration defaultDatabase="ConnectionStrings.Oracle.xxx"/>
    <connectionStrings>
    <add name="ConnectionStrings.Oracle.xxx" connectionString="DATA SOURCE=des;PASSWORD=zzz;PERSIST SECURITY INFO=True;USER ID=aaa;"
    providerName="Oracle.DataAccess.Client" />
    My Code
    var key = "ConnectionStrings.Oracle.xxx";
    Database db = Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.Current.GetInstance<Database>(key); //~(EntLib 5 recommended)
    using (DbCommand cm = db.GetStoredProcCommand("TBL_FRKDATA.TBL_FRKDATA_FND_ALL"))
    cm.Parameters.Add(CreateCursorParameter("P_REFCURSOR"));
    // Using "using" will cause both the DataReader and connection to be
    // closed. (ExecuteReader will close the connection when the
    // DataReader is closed.)
    using (IDataReader dataReader = db.ExecuteReader(cm))
    while (dataReader.Read())
    builder.Add(dataReader);
    return builder.EntityList;
    full error stacktrace
    Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.GuardTypeIsNonPrimitive(IBuilderContext context, SelectedConstructor selectedConstructor)
    Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.PreBuildUp(IBuilderContext context)
    Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
    Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlanCreatorPolicy.CreatePlan(IBuilderContext context, NamedTypeBuildKey buildKey)
    Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
    Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
    Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
    Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
    Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)
    Microsoft.Practices.Unity.UnityServiceLocator.DoGetInstance(Type serviceType, String key)
    Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
    Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
    Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService](String key)
    Update
    this code works for me:
    [TestMethod]
    public void Conectar_con_EntLib_y_OdpNet_Test()
    var key = "ConnectionStrings.Oracle.xxx";
    string connectionString = ConfigurationManager.ConnectionStrings[key].ConnectionString;
    string providerName = ConfigurationManager.ConnectionStrings[key].ProviderName;
    //Database db = Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.Current.GetInstance<Database>(key);
    TestContext.WriteLine("connectionString: " + connectionString);
    TestContext.WriteLine("providerName: " + providerName);
    DbProviderFactory factory = DbProviderFactories.GetFactory(providerName);
    using (DbConnection connection = factory.CreateConnection())
    connection.ConnectionString = connectionString;
    connection.Open();
    TestContext.WriteLine("Estado Conexión: " + connection.State);
    connection.Close();
    Edited by: 886608 on 13-ene-2012 10:54

    Hi,
    Did you progress in getting ODP.NET working with Microsoft Enterprise Library 5.0 ?
    Thanks

  • Oracle.DataAccess 4.112.3.0 Slow in Windows 7

    Hi,
    We are having a data retrieval performance problem in our NET4 app using ODP.net 4. This problem seems to manifest itself only on win7 pcs, most recently/just installed.
    Some notes:
    Developments has/is being done in one year old win7x32 and win7x64 pcs which have no problems retrieving the data. These pcs are NOT top of the line: core2duo 8400 with 4gb ram, so it seems the problem is not related to machine specs.
    The app has entered production about a month ago (about 600 concurrent users), and the symptoms are almost always the same: most of the clients have winxp where performance is ok, while almost all clients with win7x32 (either old or newlly installed) are very slow retrieving data.
    Example query: "select * from some_table" retriieves approximately 400 rows.
    With two computers having the same hardware, 4gb ram:
    - retrieving the data in the winxp pc takes 4 seconds
    - retrieving the data in the Win7x64 takes 3 minutes
    - retrieving data in other win7x32 new installations (with different hardware) takes the same time: about 3 minutes.
    - just for reference, in all the developer pcs with win7 (with vs2010 installed) the speed is the same as on the winxp clients. Installing a vs2010 on a problematic win7 pc didn't change anything.
    Tech specs:
    NET4 csharp app built with x86.
    ODP.net 4.112.3.0 xcopy 32bits using only the dlls copied to the app directory (Oracle.DataAccess.dll, OraOps11w.dll, oci.dll, oraociicus11.dll). Oracle client has not been installled in any client pc.
    Oracle 11gr2 on a hp ux server, 700 miles away with a dedicated 100MB dedicated line.
    Thanks for any help.

    Just a guess, but what have you set as the value for the "enlist" connection parameter (it defaults to true)? If possible you may try setting to "false" and verify. Also, it might be worth investigating the FetchSize value if there are lots of roundtrips due to small value.

  • Very slow first connection with Oracle.DataAccess 4.112.1.2

    Hello, I'm having some troubles with connecting using Oracle DataAccess component. In particular, when using .Net 4 Framework, the first connection to the database takes about 20-25 seconds!
    Here's my setup:
    - Web server running 64-bit Windows Web Server 2008 SP2 with IIS 7.0
    - Oracle server running 64-bit Windows Server Standard 2008 SP2 with Oracle 11g
    The version of ODAC component is 2.112.1.2 / 4.112.1.2
    The first strange thing is that, when I set an application on .NET 4 in IIS, I need to "Enable 32-bit Application" in order for it to work.
    I made some tests with a very simple query: "SELECT 1 FROM dual" and here's the results:
    - Classic ASP (ADODB.Connection): a fraction of a second to connect
    - .NET 2 with System.Data.OracleClient: a fraction of a second to connect
    - .NET 4 with Oracle.DataAccess: 20-25 seconds
    Moreover, if I launch the first connection thru Classic ASP, then the .NET 4 connection is very fast, as it happen in any case from the second connection on...
    This way, I excluded the problem is in the connection string, since it's always pretty much the same. I also excluded it could be a TNS problem, since they all use the same TNS (I think).
    That's all I've come up with, and I'm not a big Oracle expert so I hope someone here can help me sorting the situation out!
    Thanks,
    Stefano

    Thanks for your reply.
    I already tried messing around with that parameter.
    At the moment, it was set as:
    SQLNET.AUTHENTICATION_SERVICES= (NONE)
    I commented it and nothing changed.
    Thanks anyway :)

  • Oracle.DataAccess.dll on Windows 7 64 bit

    Hi,
    I am migrating a .Net 3.5 windows class library from WinXP 32 bit to Win7 64 bit. I use Oracle 11g 64 bit client to connect to database.
    my code works in Debug build but not in Release build. here is the error message:
    "An attempt was made to load an assembly with an incorrect format:"
    I did not complete uninstall by Oracle Deinstall, and re-install it.
    Debug build have a waring:
    "Assembly generation -- Referenced assembly 'Oracle.DataAccess.dll' targets a different processor."
    Release build still the same incorrect format error.
    here is more information:
    under C:\Windows\assembly
    Oracle.DataAccess     2.112.1.0     89b483f429c47342     AMD64
    Oracle.Web          2.112.1.0     89b483f429c47342     AMD64
    How should I fix it? should I download and install "64-bit Oracle Data Access Components (ODAC)"? What's difference between ODP.net in Oracle client and in ODAC?
    Thank you,
    Wes
    Windows 7 Pro, 64 bit, Visual Studio 2010, Oracle 11g 64 bit client

    What do you have /32BIT flag set to in the assembly? Ie, was it compiled with AnyCPU, x86, etc? You can use corflags.exe with the .net sdk to find out.
    Prior to VS2010, the default was AnyCPU which meant it ran as 64 bit on 64 bit OS, and 32 bit on 32 bit OS.
    As of VS2010, the IDE defaults to x86, which means it runs as 32 bit no matter what.
    32 bit apps need 32 bit odp/client. 64 bit apps need 64 bit odp/client.
    The error you're getting usually means you have the wrong bits (32/64) of the Oracle client installed.
    Assuming you have the wrong client bits installed, you could either
    a) make the app run as the other bits by setting/clearing the 32BIT flag (also by using corflags.exe)
    b) install the other bits of Oracle client software. a 32 bit home and a 64 bit home play rather nicely together for the most part, but you need to install them into separate homes.
    Hope it helps,
    Greg

  • Oracle.DataAccess.Client.OracleDataAdapter exists in both v2 and v4

    Hi there,
    I am developing ASP Net application with ODP.NET 11.2.0.2.1 and VS 2010. The target framework is .Net framework 3.5 and I've explicitly Oracle.DataAccess reference to v.2, with
    <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
    , but when it compiled, it throw error
    The type 'Oracle.DataAccess.Client.OracleDataAdapter' exists in both
    'c:\WINDOWS\assembly\GAC_32\Oracle.DataAccess\2.112.2.0__89b483f429c47342\oracle.dataaccess.dll'
    and 'c:\WINDOWS\Microsoft.NET\assembly\GAC_32\Oracle.DataAccess\v4.0_4.112.2.0__89b483f429c47342\oracle.dataaccess.dll'     
    c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\esptweb\df172a69\e974c60e\App_Code.eoge0t0f.4.cs
    How can I fixed it?
    Thanks for the help.

    Did you try adding that reference using the Add Reference command in Visual Studio instead? I've never seen it behave like this before.
    There are two versions of the assembly, but it shouldn't be trying to load the .net 4 version if you have a reference to the .net 2 version and you're in a 2 (or 3.5) app.

  • Problems with Oracle.DataAccess assembly after installing Oracle 11gR2

    Windows 7 x64 SP1
    Visual Studio 2010
    ODAC112012
    Oracle 11gR2 11.2.0.1.0 for Windows x64
    Oracle Patch 12429529
    IIS 7.0
    I had my development machine setup and working with all of the above items except for the Oracle 11gR2(and patch), I was using a separate Oracle server. However everything went bad after the installation of 11gR2, I get the following error when trying to run the web application: "Could not load file or assembly 'Oracle.DataAccess, Version=2.111.7.10, Culture=neutral'"...
    My application is built in .NET 3.5 and the application pool is in 32 bit mode in IIS 7.
    Do I have to do something with the assembly rebind trick?:
    C:\Windows\assembly\GAC_32\Policy.2.102.Oracle.DataAccess\2.112.1.2__89b483f429c47342>Policy.2.102.Oracle.DataAccess.config
    Any help is very appreciated.

    I don't run Oracle server locally just avoid stuff like this, but since you installed an x64 server while having the application running in x86 mode, one potential issue is that the binding redirect you were using is no longer working because it's set for the 64 bit version instead. You don't have 2.111.7.10 on the machine at all, so try deleting that reference and pointing directly at your ODAC version.
    Alternately reconfigure the project to compile for x64 and disable 32 bit mode in IIS, then use the 64 bit client.

  • Oracle provider Oracle.DataAccess not find. Version - ODAC 4.112.2.0

    Hello,
    Please to help me!!!!...??? I don’t know more what to do.
    I have an application ASP.NET, C# with access to the database Oracle by ODAC.
    It was worked without problem on the platform x86. I have tried to put it on the server Windows 2008 R2 without of the success.
    Than on the other PC I have installed:
    -Windows 7 platform 64 bit.
    -ODAC 11.2 Release 3 (11.2.0.2.1) with Oracle Developer Tools for Visual Studio and I have put this -path in the system path
    -Visual Studio 10
    -Framework 2 (v2.0.50727) and 4 (v4.0.30319)
    - I have configured IIS server two “Pools Classic” for Framework 2 and 4
    In the debugging by Visual Studio 10 it is working with Framefork 4 and with use of Framework 3.5 too, by using the assembly (Version=2.112.2.0 or Version=4.112.2.0):
    <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    In the web.config.
    But it’s problem when I try to start it directly from IIS (it’s not changed if I use “batch build” AnyCPU, x86 or x64):
    Erreur de configuration
    Description : Une erreur s'est produite lors du traitement d'un fichier de configuration requis pour répondre à cette demande. Veuillez consulter ci-dessous les détails relatifs à l'erreur en question, puis modifier votre fichier de configuration de manière appropriée.
    Message d'erreur de l'analyseur: Impossible de charger le fichier ou l'assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' ou une de ses dépendances. Le fichier spécifié est introuvable.
    Erreur source:
    Ligne 55 : <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    Ligne 56 : </assemblies></compilation>
    Fichier source : C:\inetpub\wwwroot\fcharges_web\web.config Ligne : 55
    Suivi du chargement de l'assembly: Les informations suivantes peuvent permettre de déterminer la raison pour laquelle l'assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' n'a pas pu être chargé.
    === Informations d'état de liaison préalable ===
    JRN : utilisateur = IIS APPPOOL\FrameWork2_Classique
    JRN : DisplayName = Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    JRN : Appbase = file:///C:/inetpub/wwwroot/fcharges_web/
    JRN : PrivatePath initial = C:\inetpub\wwwroot\fcharges_web\bin
    Assembly appelant : (Unknown).
    ===
    JRN : cette liaison démarre dans le contexte de chargement de default.
    Equal error With Framework 4
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
    Parser Error Message: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. Le fichier spécifié est introuvable.
    Source Error:
    Line 43: <add assembly="Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
    Line 44: </assemblies></compilation>
    Source File: C:\inetpub\wwwroot\fcharges_web\web.config Line: 43
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' could not be loaded.
    === Pre-bind state information ===
    LOG: User = IIS APPPOOL\ASP.NET v4.0 Classic
    LOG: DisplayName = Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342
    (Fully-specified)
    LOG: Appbase = file:///C:/inetpub/wwwroot/fcharges_web/
    LOG: Initial PrivatePath = C:\inetpub\wwwroot\fcharges_web\bin
    Calling assembly : (Unknown).
    When I look to GAC, I don’t know exactly all of the links, but I think that all is in order :
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>gacutil /l
    Microsoft (R) .NET Global Assembly Cache Utility. Version 3.5.30729.1
    Copyright (c) Microsoft Corporation. All rights reserved.
    The Global Assembly Cache contains the following assemblies:
    System.Data.OracleClient.resources, Version=2.0.0.0, Culture=de, PublicKeyToken=b77a5c561934e089, pr
    ocessorArchitecture=MSIL
    System.Data.OracleClient.resources, Version=2.0.0.0, Culture=fr, PublicKeyToken=b77a5c561934e089, pr
    ocessorArchitecture=MSIL
    System.Data.OracleClient.resources, Version=2.0.0.0, Culture=it, PublicKeyToken=b77a5c561934e089, pr
    ocessorArchitecture=MSIL
    System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, process
    orArchitecture=AMD64
    Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArc
    hitecture=x86
    Oracle.DataAccess.resources, Version=2.112.2.0, Culture=fr, PublicKeyToken=89b483f429c47342, process
    orArchitecture=x86
    Oracle.Web, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitectu
    re=x86
    Oracle.Web.resources, Version=2.112.2.0, Culture=fr, PublicKeyToken=89b483f429c47342, processorArchi
    tecture=x86
    Policy.2.102.Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342,
    processorArchitecture=x86
    Policy.2.111.Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342,
    processorArchitecture=x86
    Policy.2.111.Oracle.Web, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, proces
    sorArchitecture=x86
    Policy.2.112.Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342,
    processorArchitecture=x86
    Policy.2.112.Oracle.Web, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342, proces
    sorArchitecture=x86
    When I put Oracle.DataAccess.dll in the directory bin of the application the error is:
    Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. Tentative de chargement d’un programme de format incorrect.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. Tentative de chargement d’un programme de format incorrect.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess' could not be loaded.
    === Pre-bind state information ===
    LOG: User = IIS APPPOOL\Classic .NET AppPool
    LOG: DisplayName = Oracle.DataAccess

    Hi all,
    I have find the option to “Create new project platform”. It was the line
    “<identity impersonate="true"/>»
    in the web.config file, who have blocked this option.
    But the problem is that it’s nothing to bee changed.
    In the Visual studio with debugging it’s all of the version who work
    X64, x86, Any CPU and all of this versions with Framework 3.5 or 4.
    But when I try to run it, directly by IIS it’s not working.
    The same error for:
    <add assembly="Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    As for
    <add assembly="Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
    Please anybody to help my.
    I really don’t know what to do!!!

  • Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0

    Hello Everyone,
    I am simply trying to insert into an oracle database table. When I try to run the insert from my visual studio program after a button is clicked the program stops and I get "Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0" error.
    Why is this? I have added the reference and put "using Oracle.DataAccess;" in the file. The code is below. Any suggestions?
    OracleConnection Con = new OracleConnection(ConfigurationManager.ConnectionStrings["ConnectionString1"].ToString());
    OracleCommand sqlCmd = new OracleCommand();
    //OracleDataReader dr;
    sqlCmd.Connection = Con;
    Con.Open();
    sqlCmd.CommandText = "INSERT INTO FGID values (0, 0, 0, ' ', sysdate)";
    sqlCmd.ExecuteNonQuery();
    sqlCmd.Clone();
    MessageBox.Show("Record Inserted!");
    M.N.

    Hi Boa_nerges,
    >>Could not load file or assembly 'Oracle.DataAccess, Version=4.112.4.0" error.
    Whether all projects have the same issue?
    Please make sure that it is not the platform target issue in your project property. Or the setup version issue.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/9827bb73-a58b-415d-ad93-8e08f3a1258b/need-urgent-help-could-not-load-file-or-assembly-39oracledataaccess-version411220?forum=csharpgeneral
    http://forums.asp.net/t/1661229.aspx?How+to+change+assembely+reference+to+Oracle+DataAccess+in+prod+
    In addition, if still no help, since the oracle is the third party tool, I suggest you post this issue to the Oracle forum:
    https://community.oracle.com/community/database
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0

    Hi,
    I am using windows 7 64 bit Enterprise Edition, Visual Studio 2010 Premium, and my app is built using .net framework 4.0. I downloaded and install ODP.NET 11.2.0.32 but when I add reference Oracle.DataAccess to my app, its giving me the following error, *"Could not load file or assembly 'Oracle.DataAccess, Version=2.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified."*
    I have checked other threads on this same topic, but I found that I have proper version (64bit) of ODP.NET as per my OS, Visual Studio & .net framework.
    Am I missing something, please help.

    Hi,
    I manage to resolve the error, the error is though due to a different reason,
    I was trying to add ODP.Net 64bit reference directly to a Web Site project in Visual Studio 2010, then find out that this is not possible as the web site builds based on aspnet worker process, and that is 32bit, hence there was a problem referencing the 64bit ODP.NET assembly.
    So I created a class library project for any cpu and refer the 64bit assembly in there, and refer the class library project in the main web site, and the problem solved.

  • Oracle.DataAccess.dll 2.112.1.0 vs 2.111.7.0

    Hi,
    I built a windows 7 64 bit dll application with Oracle 11g, my Oracle.DataAccess.dll version is 2.112.1.0. when I create setup package, I exclude Oracle.DataAccess.dll. When I install it on my user's machine, which have 2.111.7.0 version of Oracle.DataAccess.dll. Now it stop working.
    what's the best solution:
    a) install 2.112.1.0 version of Oracle.DataAccess.dll in my setup package and install it on user's machine
    b) uninstall my 2.112.1.0 version of Oracle client, install 2.111.7.0 one
    c) other... ?
    also, should I use 64 bit Oracle 11g client?
    Thank you,
    Wes

    wesbird wrote:
    When I install it on my user's machine, which have 2.111.7.0 version of Oracle.DataAccess.dll. Now it stop working.
    a) install 2.112.1.0 version of Oracle.DataAccess.dll in my setup package and install it on user's machineJust wanted to point out that if "2.111.7.0" means the user's machine has Oracle 11.1.0.7 something installed, then simply including a "2.112.1.0" dll is not enough i.e. whole 11.2 Client install is needed. Having multiple Oracle homes on a Windows pc might not work well for some apps (think dependencies/support requirements for 3rd part Oracle apps).
    Perhaps ODAC Xcopy deployment package could help simplify deployment.
    32-bit ODAC Xcopy version
    http://www.oracle.com/technetwork/database/windows/downloads/utilsoft-087491.html
    64-bit equivalent
    http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
    Edited by: orafad on Aug 24, 2011 1:10 AM

  • Oracle.DataAccess.Client.OracleConnection

    I have been reading for hours and just cant seem to make this work. I have a window app that used the ORACLEDATAACESS.dll it works great on the pc. i made the APP but when i try to redistribute i get this nasty message. I read from these forums that i should install the ODP.net net on the computer that will get the installation and i have done that but i cant see to get anywhere. Can someone please give me a tip and point out the obvious i just dont know what to do anymore. t
    System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. ---> Oracle.DataAccess.Client.OracleException The provider is not compatible with the version of Oracle client at Oracle.DataAccess.Client.OracleInit.Initialize()
    at Oracle.DataAccess.Client.OracleConnection..cctor()
    --- End of inner exception stack trace ---
    at Oracle.DataAccess.Client.OracleConnection.Dispose(Boolean disposing)
    at System.ComponentModel.Component.Finalize()
    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    Notepad
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/JAM/My%20Notepad/Notepad.exe
    Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    Oracle.DataAccess
    Assembly Version: 2.111.7.10
    Win32 Version: 2.111.7.10
    CodeBase: file:///C:/Program%20Files/JAM/My%20Notepad/Oracle.DataAccess.DLL
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    Oh interesting. I imagine there's a lot of ways that issue could crop up. Thanks!
    I am driving myself completely out of my mind having tried to move a "solution" from one computer
    to another. That is not a nobrainer. I ran into an issue on my home computer that defied all efforts to
    stop it (the cursed varchar columns) so I decided to give up and do the development at work. But the project has not liked the
    move. That is such an issue for an faq: how to design your project and whatever so that it can be
    moved from one development location to another, one database to another, and then,
    how to deploy it. And yeah now that you mention it differences in drive letters might well be a
    factor here. :-(

  • Oracle.DataAccess.dll v2.112.2.40 or v4.112.2.40?

    After installing 11.2.0.2.40 BETA I noticed that the odp.net bin folder contained two versions of Oracle.DataAccess.
    2.x: v2.112.2.40
    4: v4.112.2.40
    Only the version from the 2.x folder was added to the GAC.
    I'm using EF on .Net framework 4 and wanted to make sure I was using the correct assembly version. Should I be using v4.112.2.40 or is v2.112.2.40 correct?

    If you want to use EF, you should be using the 4.x version as that's the .net 4 version of the assembly. That version was GAC'd for me, is your project running in .net 4?

  • Could not load file or assembly Oracle.DataAccess, Version=4.112.2.0

    Hi There..
    I'm running the follows:
    1. OS : XP SP3
    2. VS 2010
    3. ODP Net 11.2.0.2.0
    When I set the ASP NET target framework to .NET 4 all running normally. However, if the set target to .NET 2 appears error "Could not load file or assembly Oracle.DataAccess, Version=4.112.2.0".
    What could be the problem ?
    Thanks,
    Iqbal

    Just figure it out..
    use assembly binding when targetted framework is 2.0
    <runtime>
              <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
                   <dependentAssembly>
                        <assemblyIdentity name="Oracle.DataAccess" publicKeyToken="89b483f429c47342"/>
                        <bindingRedirect oldVersion="4.112.2.0" newVersion="2.112.2.0"/>
                   </dependentAssembly>
              </assemblyBinding>
         </runtime>
    .. and all running back normally :D

Maybe you are looking for

  • Conditions on key figures in the report

    Hi All, I have a report requirement where I have to display the orders which have the Net Value = 0 and the Cost > 0. Can I do something like this using formulas in BEx? If so, can someone please give me the process to do it? Thanks, RPK.

  • My swipe is not working

    I'm trying to delete a song on my iPad. I tried everything I tried swiping left the right right to left it works on my iPod but not on my iPad. I even tried to go into the music settings and turn off view all music and then went back and tried to do

  • Can we be done loading driver and registering driver by Using 'new" Oper.

    Dear Sir.. Can we directly create the instance of any driver class by using the "new" operator and by this object can we call any method like getConnection() etc,will it return connection instance. Is it necessary these all task from loading to regis

  • Color issues between photoshop files and PDF's

    i create a lot of PDF's from photoshop photographic files in order to email to clients for review. when i look at the PDF's, the colors look flat and dull and dark compared to the original photoshop files (I'm using CS3 and Acrobat Professional 8.0).

  • Accellerated SAP literature?

    Hello, I need tips for literature to read about the Accelerated SAP roadmap. Are there any reccomended books or articles i could read to understand more about v.7.1 and previous versions of ASAP? I am also interested in ASAP in a brief historical con