Caused BadImageFomatException resolving oracle connection error try to load Oracle client libraries. If the 32-bit mode operation in case of mounting 64 Oracle client components, given this problem will occur.

A recently encountered an error .NET to connect to Oracle a mistake, mainly due to change of a computer, the previous run on the new computer project emerged, the working environment for vs2017 + Oracle 64 Wei, win10 system

This error is a headache one day, find a lot of blog to solve this problem

In the main this is my solution ideas and methods to summarize.

1. Check your Oracle client is installed successfully (I only security of the client, no server installation), the installation must be whether the administrator is run. View the registry and environment configuration is OK.

2. Click Install to the folder, right Properties, click the Security Options tab, add a group or a domain name (see below),

3. You can now publish first project to run on IIS, or if the report was wrong. Change the application pool project - Advanced Settings - Enable 32-bit application (if it is set to run 32-bit true, because I was so 64-bit is set to false)

 

4. After the successful operation, that Oracle configuration should be no problem, if the reported errors or debug this project put option on the web vs, to use IIS Express 64-bit version selected on the vs.

 

Added: During operation encountered a bit of other errors also mention I say the following solution

1. The need to install the client version of the problem of high

Solution: This is because you do not find the configuration file in the Oracle environment oci.dll lead, after you install the Oracle client-side oci find this file in the file, to configure the environment to the directory of the file.

2. Unable to resolve the connect identifier specified

Solution: error because the project profiles to find connection identifier, because it is a new installation of Oracle forget the reason configuration, configuration about the connection identifier (see below) in this file.

These are my ideas to solve this problem, if there is something wrong process, please indicate Gangster

Guess you like

Origin www.cnblogs.com/zlguo/p/11595825.html