1 year ago

#77467

test-img

VirusModulePointer

Entity Framework runtime error when parsing edm mappings in web.config

I am getting a runtime System.TypeInitializationException that points to the custom edmMappings that have been inserted into the web.config:

<oracle.manageddataaccess.client>
   <version number="*">
      <edmMappings>
        <!--added the following number mapping to eliminate mapping to short error-->
        <edmNumberMapping>
          <add NETType="bool" MinPrecision="1" MaxPrecision="1" DBType="Number"/>
          <add NETType="int16" MinPrecision="2" MaxPrecision="5" DBType="Number"/>
        </edmNumberMapping>
      </edmMappings>

      <dataSources>
        <!--my sources-->
      </dataSources>

      <settings>
         <!--my settings-->
      </settings>
   </version>
</oracle.manageddataaccess.client>

Error is:

The element 'edmMappings' has invalid child element 'edmNumberMapping'

What is weird is that someone that had worked on this app prior can get around this runtime error but I cannot. What is going wrong here?

  • Entity Framework 6.1.3
  • Oracle.ManagedDataAccess.EntityFramework 12.1.24

Thanks!

c#

.net

odac

odp.net-managed

0 Answers

Your Answer

Accepted video resources