Page 1 of 1

Error Calling DbContext Contructor

Posted: Mon 21 Oct 2013 18:38
by guilford
We are using DevArt 7.2.104.0 against an Oracle 11g database. We are getting a "the type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception" error (error details at end of this post) calling the constructor of our DbContext Entity Model. We have not seen this error on our development workstations, but we see it on some of our Win 2008 production servers. I am hoping someone can point us in the right direction toward resolving this.

Our app.config file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
<connectionStrings>
<add name="PROKEntitiesConnectionString" connectionString="metadata=res://*/ProkModel.csdl|res://*/ProkModel.ssdl|res://*/ProkModel.msl;provider=Devart.Data.Oracle;provider connection string="User Id={DBUSERNAME};Password={DBPASSWORD};Server={DBNAME};Persist Security Info=True;Pooling=False"" providerName="System.Data.EntityClient" />
</connectionStrings>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.data>
<DbProviderFactories>
<remove invariant="Devart.Data.Oracle" />
<add name="dotConnect for Oracle" invariant="Devart.Data.Oracle"
description="Devart dotConnect for Oracle"
type="Devart.Data.Oracle.OracleProviderFactory, Devart.Data.Oracle,
Version=7.2.104.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
</DbProviderFactories>
</system.data>
<system.serviceModel>
<services>
<service behaviorConfiguration="ProviderContracting.Service.ProviderContractingServiceBehavior" name="ProviderContracting.Service.ProviderContractingService">
<endpoint address="/ProviderContractingService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IProviderContractingService" name="NetTcpBinding_IProviderContractingService" contract="ProviderContracting.Service.IProviderContractingService">
<identity>
<dns value="dc-twwebpwb01.thadmin.com"/>
</identity>
</endpoint>
<host>
<baseAddresses>
<add baseAddress="net.tcp://dc-twwebpwb01.thadmin.com:8624/ProkService"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ProviderContracting.Service.ProviderContractingServiceBehavior">
<serviceMetadata httpGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceAuthorization impersonateCallerForAllOperations="true"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<serviceThrottling
maxConcurrentCalls="200"
maxConcurrentSessions="200"
maxConcurrentInstances="200"
/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_IProviderContractingService" closeTimeout="00:20:00" openTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="100" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="100" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<reliableSession ordered="true" inactivityTimeout="00:20:00" enabled="false"/>
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign"/>
<message clientCredentialType="Windows"/>
</security>
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

And the error we are seeing is this:

Exception type: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]
Source: mscorlib
Source Assembly: mscorlib.dll
Source Assembly Version: 4.0.0.0
Source Type: System.Runtime.Remoting.Proxies.RealProxy
Source Method: Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
Debug Build?: True
Message: The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.

Service Model Action: http://schemas.microsoft.com/net/2005/1 ... cher/fault
Service Model Code: System.ServiceModel.FaultCode
Service Model Message: The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Service Model Reason: The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.

Service Model Detail Inner Exception Message: The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception.
Service Model Detail Inner Exception Type: System.TypeInitializationException
Service Model Detail Inner Exception Stack Trace: at System.Data.Entity.Internal.AppConfig.get_DefaultInstance()
at System.Data.Entity.DbContext..ctor(String nameOrConnectionString)
at PROKModel.PROKEntities..ctor() in d:\Build Agent\Builds\10\TW Provider\Test - Signature Service\Sources\ProviderContracting.Models\ProkModel.Designer.cs:line 41
at ProviderContracting.SignatureService.ProviderContractingSignatureService.GetDocumentForApprovalFileName(Int64 prokChangeSetId) in d:\Build Agent\Builds\10\TW Provider\Test - Signature Service\Sources\ProviderContracting.SignatureService\ProviderContractingSignatureService.cs:line 134
at ProviderContracting.SignatureService.ProviderContractingSignatureService.SendApproveRequestDocumentForApprovalWithReportBytes(String senderEmailAddress, String recipientEmailAddress, Int64 prokChangeSetId, Byte[] reportBytes, String& senderKey, String& fileName) in d:\Build Agent\Builds\10\TW Provider\Test - Signature Service\Sources\ProviderContracting.SignatureService\ProviderContractingSignatureService.cs:line 60
at SyncInvokeSendApproveRequestDocumentForApprovalWithReportBytes(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Re: Error Calling DbContext Contructor

Posted: Tue 22 Oct 2013 12:59
by Shalex
1. Have you specified the full stack trace? If not, please post it with all inner exceptions.
2. Please check again the app.config file of your deployed application. If there is the following entry

Code: Select all

<configSections>
  <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=X.X.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
replace X.X.0.0 with the actual version of EntityFramework.dll used by the application.
3. If this doesn't help, send us a small test project so that we can deploy it in our environment and reproduce the error.

Re: Error Calling DbContext Contructor

Posted: Tue 22 Oct 2013 14:54
by guilford
Thank you for the response. I double-checked to make sure we had that section in our config file and we were missing it, so I added it. I redeployed everything to our server and now I get the error below (which seems to make it into the constructor, so it makes it a little farther than before, but now crashes on a config line in the constructor). The line in the constructor where is fails is this:

var config = Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig.Instance;

Our newly updated config file is this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="PROKEntitiesConnectionString" connectionString="metadata=res://*/ProkModel.csdl|res://*/ProkModel.ssdl|res://*/ProkModel.msl;provider=Devart.Data.Oracle;provider connection string="User Id={DBUSERNAME};Password={DBPASSWORD};Server={DBNAME};Persist Security Info=True;Pooling=False"" providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
</entityFramework>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.data>
<DbProviderFactories>
<remove invariant="Devart.Data.Oracle" />
<add name="dotConnect for Oracle" invariant="Devart.Data.Oracle"
description="Devart dotConnect for Oracle"
type="Devart.Data.Oracle.OracleProviderFactory, Devart.Data.Oracle,
Version=7.2.104.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
</DbProviderFactories>
</system.data>
<system.web>
<compilation debug="true"/>
</system.web>
<system.serviceModel>
<services>
<service behaviorConfiguration="ProviderContracting.SignatureService.ProviderContractingSignatureServiceBehavior" name="ProviderContracting.SignatureService.ProviderContractingSignatureService">
<endpoint address="/ProviderContractingSignatureService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IProviderContractingSignatureService" name="NetTcpBinding_IProviderContractingSignatureService" contract="ProviderContracting.SignatureService.IProviderContractingSignatureService">
<identity>
<dns value="server.domain.com"/>
</identity>
</endpoint>
<host>
<baseAddresses>
<add baseAddress="net.tcp://dc-server.domain.com:1234/ProkSignatureService"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ProviderContracting.SignatureService.ProviderContractingSignatureServiceBehavior">
<serviceMetadata httpGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceAuthorization impersonateCallerForAllOperations="true"/>
<dataContractSerializer maxItemsInObjectGraph="2147483647"/>
<serviceThrottling
maxConcurrentCalls="200"
maxConcurrentSessions="200"
maxConcurrentInstances="200"
/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_IProviderContractingSignatureService" closeTimeout="00:20:00" openTimeout="00:20:00" receiveTimeout="00:20:00" sendTimeout="00:20:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="100" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="100" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<reliableSession ordered="true" inactivityTimeout="00:20:00" enabled="false"/>
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign"/>
<message clientCredentialType="Windows"/>
</security>
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="server.domain.com" port="25" defaultCredentials="true" />
</smtp>
</mailSettings>
</system.net>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

And the new error trace is this (includes all inner errors):

Time of Error: 10/22/2013 9:48:08 AM

Exception outermost view of call stack
--------------------------------------------------------------------------------
Exception type: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]
Source: mscorlib
Source Assembly: mscorlib.dll
Source Assembly Version: 4.0.0.0
Source Type: System.Runtime.Remoting.Proxies.RealProxy
Source Method: Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
Debug Build?: True
Message: The type initializer for 'Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig' threw an exception.

Service Model Action: http://schemas.microsoft.com/net/2005/1 ... cher/fault
Service Model Code: System.ServiceModel.FaultCode
Service Model Message: The type initializer for 'Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig' threw an exception.
Service Model Reason: The type initializer for 'Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig' threw an exception.

Service Model Detail Inner Exception Message: The type initializer for 'Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig' threw an exception.
Service Model Detail Inner Exception Type: System.TypeInitializationException
Service Model Detail Inner Exception Stack Trace: at Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig.get_Instance()
at PROKModel.PROKEntities..ctor() in d:\Build Agent\Builds\10\TW Provider\PreRelease - Signature Service\Sources\ProviderContracting.Models\ProkModel.Designer.cs:line 44
at ProviderContracting.SignatureService.ProviderContractingSignatureService.GetDocumentForApprovalFileName(Int64 prokChangeSetId) in d:\Build Agent\Builds\10\TW Provider\PreRelease - Signature Service\Sources\ProviderContracting.SignatureService\ProviderContractingSignatureService.cs:line 134
at ProviderContracting.SignatureService.ProviderContractingSignatureService.SendApproveRequestDocumentForApprovalWithReportBytes(String senderEmailAddress, String recipientEmailAddress, Int64 prokChangeSetId, Byte[] reportBytes, String& senderKey, String& fileName) in d:\Build Agent\Builds\10\TW Provider\PreRelease - Signature Service\Sources\ProviderContracting.SignatureService\ProviderContractingSignatureService.cs:line 60
at SyncInvokeSendApproveRequestDocumentForApprovalWithReportBytes(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)

Service Model Detail Inner Exception Message: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Service Model Detail Inner Exception Type: System.Runtime.InteropServices.COMException
Service Model Detail Inner Exception Stack Trace: at System.Security.Policy.PEFileEvidenceFactory.GetLocationEvidence(SafePEFileHandle peFile, SecurityZone& zone, StringHandleOnStack retUrl)
at System.Security.Policy.PEFileEvidenceFactory.GenerateLocationEvidence()
at System.Security.Policy.PEFileEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.AssemblyEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.Evidence.GenerateHostEvidence(Type type, Boolean hostCanGenerate)
at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
at System.Security.Policy.Evidence.GetHostEvidence(Type type, Boolean markDelayEvaluatedEvidenceUsed)
at System.Security.Policy.AppDomainEvidenceFactory.GenerateEvidence(Type evidenceType)
at System.Security.Policy.Evidence.GenerateHostEvidence(Type type, Boolean hostCanGenerate)
at System.Security.Policy.Evidence.GetHostEvidenceNoLock(Type type)
at System.Security.Policy.Evidence.RawEvidenceEnumerator.MoveNext()
at System.Security.Policy.Evidence.EvidenceEnumerator.MoveNext()
at System.Configuration.ClientConfigPaths.GetEvidenceInfo(AppDomain appDomain, String exePath, String& typeName)
at System.Configuration.ClientConfigPaths.GetTypeAndHashSuffix(AppDomain appDomain, String exePath)
at System.Configuration.ClientConfigPaths..ctor(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigPaths.GetPaths(String exePath, Boolean includeUserConfig)
at System.Configuration.ClientConfigurationHost.RequireCompleteInit(IInternalConfigRecord record)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfig..cctor()

User defined attributes:
System.Object: NULL

Stack Trace:

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ProviderContracting.SignatureService.IProviderContractingSignatureService.SendApproveRequestDocumentForApprovalWithReportBytes(String senderEmailAddress, String recipientEmailAddress, Int64 prokChangeSetId, Byte[] reportBytes, String& senderKey, String& fileName)
at ProviderContracting.ViewModels.Workflow.SubmitRequestViewModel.OkCommandExecute(Object args)
at Cinch.SimpleCommand`2.Execute(T2 parameter)
at Cinch.SimpleCommand`2.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Re: Error Calling DbContext Contructor

Posted: Wed 23 Oct 2013 14:13
by Shalex
Please add the following entry in the config file of your application:

Code: Select all

<configSections>
  <section name="Devart.Data.Oracle.Entity" type="Devart.Data.Oracle.Entity.Configuration.OracleEntityProviderConfigurationSection, Devart.Data.Oracle.Entity, Version=7.2.104.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
</configSections>
If this doesn't help, send us a small test project so that we can deploy it in our environment and reproduce the error.