Asp.net 分析器错误消息:未能生成代码。类型'的例外情况;系统.数据.设计.内部异常';被抛出

Asp.net 分析器错误消息:未能生成代码。类型'的例外情况;系统.数据.设计.内部异常';被抛出,asp.net,web-config,connection-string,odp.net,odp.net-managed,Asp.net,Web Config,Connection String,Odp.net,Odp.net Managed,我在使用ODP.net时遇到此错误。当我包含连接时,会出现此错误 <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="BannerCS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BannerCS (Web.config)" ParameterPrefix=":" Property

我在使用ODP.net时遇到此错误。当我包含连接时,会出现此错误

<Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="BannerCS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="BannerCS (Web.config)" ParameterPrefix=":" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.BannerCS.ConnectionString" Provider="Oracle.ManagedDataAccess.Client" />

此错误出现在.net 3.5版
解决方案是将.net版本升级到.net 4.0或更高版本

Hi Shomaail,我面临的问题似乎与此相同。我只能在屏幕上看到这个字母“解析器错误消息”,但除此之外,我没有任何线索。你能告诉我在哪里可以得到你写的日志吗?只要使用.NET4.0或更高版本,错误就会消失在屏幕上。谢谢你的评论。我的问题与你的完全不同。该dll不在该web服务器的machine.config中。我似乎搞错了设置web服务器的顺序,在安装ODAC之前,应该有acttivate.NETFramework。所以我是手工写的,这样就可以克服这个问题了。胡。。。
    <add name="BannerCS" connectionString="DATA SOURCE=******;PASSWORD=**********;PERSIST SECURITY INFO=True;USER ID=*********"
  providerName="Oracle.ManagedDataAccess.Client" />
<add assembly="Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
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: Could not load file or assembly 'Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.