OracleProfileProvider Cannot perform CAS Asserts in Security Transparent methods
Posted: Tue 28 Oct 2014 14:45
Hello,
I have a web application using Devart.Connect for Oracle.
I received the following error when I tried to launch the web service:
****************************************************************************
Server Error in '/WindowsClient' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 92: add name="DevartOracleProfileProvider" type="Devart.Data.Oracle.Web.Providers.OracleProfileProvider, Devart.Data.Oracle.Web , Version=8.4.225.4, Culture=neutral, PublicKeyToken=09af7300eec23701" connectionStringName="DefaultConnection" applicationName="/"/
********************************************************************************
Also in the log file is the following error:
[2014-10-28T15:30:47.3105341+01:00] [ERROR] [1 ] [Tgw.Windows.Web.MvcApplication] Unhandled application error occured. Sender: [ASP.global_asax]. Info: System.ApplicationException: Could not load application configuration. ---> System.Configuration.ConfigurationErrorsException: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods
at Devart.Common.Web.Providers.DbProfileProvider..ctor(String defaultName, String defaultDescription, DbProviderFactory provider)
**************************************************
In the web.config, I have the following configuration:
<add name="DevartOracleProfileProvider" type="Devart.Data.Oracle.Web.Providers.OracleProfileProvider, Devart.Data.Oracle.Web , Version=8.4.225.4, Culture=neutral, PublicKeyToken=09af7300eec23701"
connectionStringName="DefaultConnection" applicationName="/"/>
and
<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, PublicKeyToken=09af7300eec23701" />
</DbProviderFactories>
</system.data>
I use Devart.Data.Oracle.Web version 8.4.224.4
Any help with this?
Thanks
I have a web application using Devart.Connect for Oracle.
I received the following error when I tried to launch the web service:
****************************************************************************
Server Error in '/WindowsClient' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Exception has been thrown by the target of an invocation.
Source Error:
Line 92: add name="DevartOracleProfileProvider" type="Devart.Data.Oracle.Web.Providers.OracleProfileProvider, Devart.Data.Oracle.Web , Version=8.4.225.4, Culture=neutral, PublicKeyToken=09af7300eec23701" connectionStringName="DefaultConnection" applicationName="/"/
********************************************************************************
Also in the log file is the following error:
[2014-10-28T15:30:47.3105341+01:00] [ERROR] [1 ] [Tgw.Windows.Web.MvcApplication] Unhandled application error occured. Sender: [ASP.global_asax]. Info: System.ApplicationException: Could not load application configuration. ---> System.Configuration.ConfigurationErrorsException: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Cannot perform CAS Asserts in Security Transparent methods
at Devart.Common.Web.Providers.DbProfileProvider..ctor(String defaultName, String defaultDescription, DbProviderFactory provider)
**************************************************
In the web.config, I have the following configuration:
<add name="DevartOracleProfileProvider" type="Devart.Data.Oracle.Web.Providers.OracleProfileProvider, Devart.Data.Oracle.Web , Version=8.4.225.4, Culture=neutral, PublicKeyToken=09af7300eec23701"
connectionStringName="DefaultConnection" applicationName="/"/>
and
<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, PublicKeyToken=09af7300eec23701" />
</DbProviderFactories>
</system.data>
I use Devart.Data.Oracle.Web version 8.4.224.4
Any help with this?
Thanks