Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Help Resolving Azure App Service Compatibility Warnings for Oracle.ManagedDataAccess in .NET Framework 4.8 MVC App

Irshad MKNov 27 2024

I have created a .NET Framework 4.8 MVC application and installed the Oracle.ManagedDataAccess package. To ensure compatibility with Azure App Service (Windows), I ran the App Service Compatibility Analyzer (AppCat) tool, which generated a report.

The report contains warnings with a mandatory severity level related to Oracle.ManagedDataAccess. I have already made changes in the web.config file based on various recommendations found online, including from ChatGPT, but the warnings persist.

What I Tried:

  1. Updated web.config to include the required settings for Oracle.ManagedDataAccess (e.g., <oracle.manageddataaccess.client> configurations).
  2. Checked that the NuGet package is up-to-date.

Warnings:

Here are the warnings from the AppCat report:

  • OracleInternal.Common.FileConfigUrl OracleInternal.Common.FileConfigUrl::Parse(System.String,OracleInternal.Common.UrlProviderRequestType,System.Boolean,System.String) -> System.Object Microsoft.Win32.RegistryKey::GetValue(System.String)
  • System.String OracleInternal.Common.ConfigBaseClass::RetrieveStringValue(System.String,System.Object,System.Boolean&) -> System.Object Microsoft.Win32.RegistryKey::GetValue(System.String)
  • System.String OracleInternal.Common.ProviderConfig::NewOraFileLoc(OracleInternal.Common.OraFiles) -> System.Object Microsoft.Win32.RegistryKey::GetValue(System.String)
  • System.String[] OracleInternal.Common.SqlNetOraConfig::get_NamesDirectoryPath() -> System.Object Microsoft.Win32.RegistryKey::GetValue(System.String)
  • System.Void OracleInternal.Common.CustomConfigFileReader::.ctor(System.Boolean) -> Microsoft.Win32.RegistryKey Microsoft.Win32.Registry::LocalMachine
  • System.Void OracleInternal.Common.CustomConfigFileReader::.ctor(System.Boolean) -> Microsoft.Win32.RegistryKey Microsoft.Win32.RegistryKey::OpenSubKey(System.String)
  • System.Void OracleInternal.Common.CustomConfigFileReader::.ctor(System.Boolean) -> System.String[] Microsoft.Win32.RegistryKey::GetSubKeyNames()

Question:

How can I resolve these compatibility warnings for Oracle.ManagedDataAccess and ensure that the application runs smoothly in Azure App Service? Any guidance or suggestions would be greatly appreciated.

This post has been answered by Alex Keh-Oracle on Nov 28 2024
Jump to Answer
Comments
Post Details
Added on Nov 27 2024
5 comments
52 views