Unable to read configuration section'oracle.manageddataaccess.client'

VS2017 runs WEB for debugging report: Unable to read the setting section'oracle.manageddataaccess.client' because it lacks section declaration

# Welcome to use Markdown editor

After downloading the code from SVN, click F5 to run and report the error as shown in the figure, but the same code as a colleague runs correctly

Approach

Look at the webpage error prompt:

  1. If you see the text "A duplicate'system.web.extensions/scripting/scriptResourceHandler' section is defined", then this error is caused by running an application based on .NET Framework 3.5 in .NET Framework 4. If you are running WebMatrix, to resolve this issue, go to the "Settings" node to set the .NET Framework version to ".NET 2". You can also delete redundant sections from the web.config file. Checked the Web.config and found that there is no prompt for the repetition;
  2. Since my database server uses Oracle12c but I installed Oracle client 10g locally, I don’t know if it is caused by a version issue, so I reinstalled the Oracle12c client, but the error is still reported.
  3. I consulted my colleague and said it was caused by the unsuccessful data interaction between VS2017 and Oracle and then installed ODTforVS2017_193100. If not installed, you can follow this link: https://pan.baidu.com/s/1KSZP1XWpmotvygOLNEetAg Extraction code: 9lrf This software is for VS2017 and Oracle Connected software; after installation, the test error is still reported
  4. As it is related to oracle.manageddataaccess.client, it is suspected that this failure is ready to re-download the application. In VS2017, click Tools-NUGet Suite Administrator-NuGet (N) of the Management Solution-search box and enter Oracle.ManagedDataAccess to find the suite and click to update to the latest Version and apply to the solution, regenerate the solution and click Run to show that the operation is successful

Solution specific icon

Insert picture description here

Insert picture description here

This article hopes to help colleagues who encounter the same problem

Guess you like

Origin blog.csdn.net/caoguanghui0804/article/details/105786111