none
Make applications using Oracle 11g and Visual Studio 2017 RRS feed

  • Question

  • While I was trying to make a c# application using Oracle 11g as specified by Oracle Tutorial on Visual Studio 2017 Community Version it gives a "BadImageFormat" exception.

    Above was tried with, • VS2017 Community Version, • Oracle 11g XE edition

    1) It'd be nice if I could know whether or not ODAC and ODT support above mentioned version of Visual Studio 2017 Community version or should I move into Visual Studio 2015s Enterprise Version. If the case is the latter one would be nice if you could provide me with a download link as Microsoft do not offer previous versions anymore.

    2) Is it possible to use Oracle 12c as a local host and make them databases in <g class="gr_ gr_15 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="15" id="15">local</g> machine without using cloud option?

    Thanks,

    T.S.

    Monday, July 17, 2017 3:11 PM

All replies

  • you can EF for ORACLE open NugetManager and type  in search text :oracle install the maximum downloads package

    or you can lock for this link 

    http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51odt-453447.html

     

    please vote me ^_^

    Monday, July 17, 2017 3:19 PM
  • Using the Oracle database by .NET has nothing to do with VS none of the versions. The usage of Oracle or any DB is provided by ADO.NET.

    https://en.wikipedia.org/wiki/ADO.NET

    If you have the correct drivers for any version of a DB supported by ADO.NET, then you should have no problems using the drivers for any .NET language.  

    "BadImageFormat" exception means you installed the drivers like the 64 bit versions on a 32 bit machine, which is not going to work. It's something like that where you have done something wrong in how you have installed the drivers.

    Monday, July 17, 2017 9:05 PM
  • Thanks for the quick reply. 

    Heres the software I'm running on...

    • Windows 10 Pro - 64 bit Version
    • Visual Studio 2017 Community (Which is anyway 32 bit)
    • Oracle 11g XE - 64 bit Version
    • And was trying to install Production Release: ODAC 12.2c Release 1

    Would be nice if you could lemme know are these <g class="gr_ gr_137 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="137" id="137">softwares</g> compatible or is it the problem with VS2017. 

    Thanks, T.S.

    Tuesday, July 18, 2017 1:01 AM
  • you can EF for ORACLE open NugetManager and type  in search text :oracle install the maximum downloads package

    or you can lock for this link 

    http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51odt-453447.html

     

    please vote me ^_^

    Hi, Is it a must when using Oracle or will the software packages mentioned below do?

    • Windows 10 Pro - 64 bit Version
    • Visual Studio 2017 Community (Which is anyway 32 bit)
    • Oracle 11g XE - 64 bit Version
    • And was trying to install Production Release: ODAC 12.2c Release 1

    Thanks in advance, T.S.

    Tuesday, July 18, 2017 1:03 AM
  • That's the best I can do for you. VS2017 has nothing to do with it, an you'll have to figure what is out of sync as far as 32 vs 64 bit Oracle. 

    https://www.google.com/#q=badimageformatexception+oracle&spf=1500341341888

    Tuesday, July 18, 2017 1:33 AM
  • Also, you should find an Oracle forum.
    Tuesday, July 18, 2017 1:35 AM
  • I don't know if this will help or not, but here's my blog post about finding a workable solution to getting an Oracle provider that worked (at least worked for us):

    http://geek-goddess-bonnie.blogspot.com/2017/05/accessing-oracle-databases-in-net.html


    ~~Bonnie DeWitt [C# MVP]

    http://geek-goddess-bonnie.blogspot.com

    Tuesday, July 18, 2017 5:00 AM
  • When do you get the "BadImageFormat" exception? Are you running code? Are you installing the product.

    BTW, if you are looking for local database I wouldn't consider Oracle a good option. I would recommend SQLite instead, which doesn't have all of the overhead and configuration issues that Oracle does.


    Paul ~~~~ Microsoft MVP (Visual Basic)

    Tuesday, July 18, 2017 1:21 PM
  • Hi IronmanX46,

    According to your question is more related to oracle,you could post a new thread in Oracle Forum for suitable support.

    The Visual C# discuss and ask the C# programming language, IDE, libraries, samples and tools.If you have some grammar or code errors, please feel free to contact us. We will try our best to give you a solution.

    Thanks for your understanding and cooperation.

    Best Regards,
    feih-7

    MSDN Community Support<br/> Please remember to click &quot;Mark as Answer&quot; the responses that resolved your issue, and to click &quot;Unmark as Answer&quot; if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:MSDNFSF@microsoft.com">MSDNFSF@microsoft.com</a>.

    Wednesday, July 19, 2017 2:12 AM