Application trying to load Oracle.DataAccess version different than the one in web.config

Last post 10-01-2009 11:09 AM by rakesh_nits. 3 replies.

Sort Posts:

  • Application trying to load Oracle.DataAccess version different than the one in web.config

    10-01-2009, 6:10 AM
    • Member
      537 point Member
    • Manotas
    • Member since 06-20-2006, 1:36 PM
    • Posts 129

     Hi,

    I would appreciate any help on the following issue we're facing:

     

    We're putting into production an appication which has been already tested on differents environements (supposed to be similars to the production one), but after configuration, we're getting an exception when loading the Oracle.DataAccess dll, but the thing is that's not the same version defined on the web.config.

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

    The 10.2.0.200 it not indeed in the GAC, but anyway, the exception's details it's pointing to the folling line on the web.config:

    <add assembly="Oracle.DataAccess, Version=9.2.0.401, Culture=neutral, PublicKeyToken=89B483F429C47342"/></assemblies>

    I really cannot see what's going on. On the GAC, I can find only the following versions of the Oracle.DataAccess:

    •  9.2.0.401
    • 1.102.2.20
    • 2.111.7.20
    • 2.102.2.20

    What else could I check ? I suppose there is any manipulation I could do at the Oracle Client level to force the use of the DLL I wish but I don't want to break anything for other applications running under the same server.....

    Does anyone know what are we doing wrong ???? Many thanks in advance

  • Re: Application trying to load Oracle.DataAccess version different than the one in web.config

    10-01-2009, 8:31 AM
    • Member
      244 point Member
    • rakesh_nits
    • Member since 07-05-2006, 12:31 PM
    • Posts 38

    I think what is happening is that the machine on which you build your application is having the version 10.2.0.200, Please check this and let me know if it is not there.  If that dll exists on the machine where you had compiled your application , copy this dll to your bin manually.you can check the loaction of the dll in the add reference dialog box. and then try to run it on production. 



  • Re: Application trying to load Oracle.DataAccess version different than the one in web.config

    10-01-2009, 10:33 AM
    • Member
      537 point Member
    • Manotas
    • Member since 06-20-2006, 1:36 PM
    • Posts 129

     Hi Rakesh,

    We check with our developpers and they say they don't have it.

    :-S

     

    Any other idea ???

  • Re: Application trying to load Oracle.DataAccess version different than the one in web.config

    10-01-2009, 11:09 AM
    Answer
    • Member
      244 point Member
    • rakesh_nits
    • Member since 07-05-2006, 12:31 PM
    • Posts 38

    which version they are having and what is the whole exception if you can get the stack trace, also if your application is crshing you can find more information in the event viewer  in application section. Do one more thing use ildasm and open the assemby which refers to Oracle.DataAccess dll, and expend the manifest node check which version is listed there. for using idlasm simply go to command prompt and type ildasm.

Page 1 of 1 (4 items)