Oracle Windows 7 - incorrect format. (Exception from HRESULT: 0x8007000B) RRS feed

  • Question

  • User-1482891610 posted



    I have a new Win 7 64x machine.  I have a .Net 4 app that makes a call to an Oracle 11g Database but I keep gettingthe below error

    An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

    But the page works fine if im in Debug mode in VS 2010

    Anyideas what the problem maybe, my code is pretty basic

    Dim da As New OracleClient.OracleDataAdapter(strSP, ProjectSettings.ConnectionStringMaconomy)
    da.SelectCommand.CommandType = CommandType.StoredProcedure

    Dim param1 As OracleClient.OracleParameter = New OracleClient.OracleParameter("prmResults", OracleClient.OracleType.Cursor)        
    param1.Direction = ParameterDirection.Output        

    Dim dt As New DataTable        

    Ive set my app pool t run in 32bit mode but no joy

    Many thanks in advance

    Tuesday, March 13, 2012 5:56 PM

All replies

  • User1071549666 posted

    I am having the same problem with an application that was converted from VS 2008 to VS 2010, Oracle 9.2 to 11.2 and 32bit to 64 bit.

    All projects in the solution are set to AnyCPU and I also tried setting them to all x64 to no avail. The project will not work when compiled on my 64 bit machine and I get the same error when I run it from version compiled on a 32 bit machine.

    Any help would be greatly appreciated..



    Friday, April 27, 2012 3:28 PM
  • User269602965 posted

    Oracle recommends returning RefCursor

    Oracle recommends Clear() parameters before adding parameters

    Friday, April 27, 2012 4:24 PM