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

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.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 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.

  • 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.

  • 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

  • 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.DataAccess problem please help

    I have an asp.net mvc (EF) project , I had downloaded oracle data provider with version 4.112.2.50 -32bit on my pc when moving project to windows server 2008 (I have the same version of odp-64bit) I have the below problem:
    Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    when I toke Oracle the "Oracle.DataAccess.dll" from the server and make it with my project reference I have another error message like the above with a file "Oracle.Web"
    Could not load file or assembly 'Oracle.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    also if I get the File "Oracle.Web.dll" to my project reference from the server I have the same error with "Oracle.Web"

    Hi Damir,
    Basically, it's possible the NLS_LANG parameter for your
    database install is invalid or isn't a available default
    value. This is a known problem.
    I didn't any specific about one connection route working
    and the other not, as in your case. However, I did find
    some information on this problem when connecting through
    Developer to a DB install.
    The quick fix is to ensure your client initialisation
    files have the 'NLS_LANGUAGE' parameter commented out.
    If the client doesn't have an "NLS_LANGUAGE" parameter
    entry the client and server use the language parameter
    indicated by the server.
    If that doesn't work (or you want to keep this parameter)
    check the NLS_LANG parameter in the DB using your working
    SQL*Plus connection. Try a default value like:
    AMERICAN_AMERICA.US7ASCII
    Also, you can try this:
    SELECT * FROM sys.v$nls_valid_values;
    Whatever you set for NLS_LANG should exist in the values
    returned for this query, otherwise you'll get the error.
    Unfortunately, resolving NLS_LANG issues is not always
    this easy. If commenting out or changing the parameters
    above still doesn't fix the problem, it is possible you need to reinstall the DB and choose the default language option. How you do this depends on the installer options
    for DB version you are using.
    One last point - I suggest you post your query to the
    Forms & Reports forums here on OTN too. This forum is
    ideally for Designer, rather than Developer questions.
    Hope all this helps.
    Regards,
    Dominic
    Designer Product Management
    Oracle

  • Problem using oracle.dataaccess.dll

    Hi,
    I have an web application which uses Oracle.DataAccess.dll to communicate with and Oracle db. The web application deployed on 32 bit windows system works but not on windows server 2008 64 bit. I installed 10204_vista_win2k8_x64_production_db package, referenced the installed dll (version 2.102.4.0) from the project but I get the following error:
    Could not load file or assembly 'Oracle.DataAccess, Version=2.102.4.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.
    Any help is appreciated. Thanks in advance.

    I had this problem too.
    I have not found any way to get ODP to work on a 64 bit machine. I have gone through more than 30 permutations of install combinations and all have their problems.
    Your's is one I remember.
    The error message does not give a good description of the problem. It CAN find it, but it can't load it.
    The main problem in my opinion is that Visual Studio is a 32 bit app and so are its tools. MS will say that is no big deal because they don't want to rewrite native code sooner than they have too. It is going to stay that way for 2010. Visual Studio is going to load a .dll to connect to Oracle in server explorer and in any datasets you have created with the designer...its going to use a 32 bit .dll now your application wants a 64bit .dll... see the problem? I beleive that when you install the ODP registry settings are made for viual studios sake, but I don't know what happens under the hood.
    Does visual studio give you any option at all to choose what assemblies to use for the IDE tools? nope
    I have tried 32 bit client, 64 bit client, ODACwithODP and every combination of them in every version oracle offers on their download site. Nothing worked 100%.
    I got
    1) "cannot load file x" when x is at the specified path
    2) BadImageFormat exception
    3) App worked but visual studio tools crashed the IDE
    4) installed all 3, but used the old system.data.oracleclient and tools worked sluggish or crashed.
    You can also combine the problem of Oracle provider along with the fact that 1/2 of Visual Studio's tools don't care about 64 bit programming. For example, I made a wcf service that as going to access my database. Well, guess what you can't use Visual Studio's WCF debugger because WcfSvcost.exe is 32 bit. Will it give you an informative error message? nope. Just a BadImageFormat Exception with no clue which file is causing the problem. spent a week of precious time on that one and thought it was an oracle provider issue.
    I have given up using ODP for now and am forced to use (4) System.Data.OracleClient just for the sake of getting any coding done at all instead of hacking my environment. It sucks. I got that working by installing 11r2 64 bit client in one home and 11r2 64bit client in another, then ODP in a 3rd. That way I can still use more friendly tools made for Oracle and let VS use the 32 bit client with the old System.Data.OracleClient dll.
    If anyone has the magic step but step to get both a working IDE with its tools remaining functional along with a working application on Windows 7 64bit, than please please let me know!

  • 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?

  • 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=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

  • 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.

Maybe you are looking for

  • Input and CRC errors on ASA 5505 outside interface

    All, I see input and crc errors on my ASA 5505  eth0/0(outside) interface and packet drops. There is very slow connection though we have 20mb line. ISP also sees the issue on the Lan interface side. We have the speed and duplex configured same on bot

  • What is the name of the song on the OVI maps comme...

    What is the name of the song featured on the commercial for OVI maps, the ad looks as though it's set in Florence, Italy but I'm not sure. Really would like to know. Also, I believe it's a female singer. Thanks a bunch, please help. 

  • Name of the exe file...?

    Hi, What is the name of the exe file for Reports Builder 6.0 or 6i? Thanks, Alisha.

  • New Payment process in R12, MICR font dropped by PREPROCESS

    Hi, With the new way of doing Payments in R12, meaning can not use the bursting engine and at the same time CUPS printers, I can't get the MICR font to be on the output .ps file after it goes through the preprocess command of the pasta config file. A

  • OS 10.4

    I bought two graphite 466 clamshells recently.....one came loaded with OS 10.4. I bought it from someone online and they left their login on the computer. I would like to install my own copy that I have of OS 10.4 that is licensed to me and erase the