Oracle Data Access driver of 64-bit version
When I create a console app it works for the driver.
When I create a web application asp.net then the driver does work. The properties of this application:
- target framework 4.0
- Platform target: any CPU
I changed 'any cpu' to 'X86' but the same problem then with 'X64' also the same problem
- the web: I checked the option "use Visual Studio Development Server"
instead of "use Local IIS Web Serve"
A console app is not an ASP.NET app. They work in completely different ways.
A platform target of "AnyCPU" runs, by default either as the CPU architecture on older versions of .NET or as a 32-bit app.
Changing the platform target to "X86" forces the app to run as 32-bit only, even on a 64-bit machine.
Change the target to x64 to match the architecture of the .DLL's you're using. In IIS, in the Application Pool you are running your code under, under Advanced Options, there is an option to run the app as a 32-bit app instead of 64-bit. If that setting is turned on, your code will run as 32-bit instead of 64-bit.
Also, you MUST install the Oracle Client on the IIS server in order for Oracle database access to work.
modified 11-Jun-20 12:16pm.