Mensagem de erro do analisador: falha ao gerar código. Exceção do tipo 'System.Data.Design.InternalException' foi lançada
Estou recebendo esse erro ao usar o ODP.net. O erro aparece quando eu incluo uma conexão
<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" />
no arquivo .XSD no projeto do site, tenho a seguinte conexão no arquivo web.config
<add name="BannerCS" connectionString="DATA SOURCE=******;PASSWORD=**********;PERSIST SECURITY INFO=True;USER ID=*********"
providerName="Oracle.ManagedDataAccess.Client" />
Consigo ver os dados executando a consulta SQL na tabela de dados no conjunto de Dados. O projeto de site baseado no .net 3.5 também não fornece nenhum erro no tempo de compilação. Mas quando eu executo o aplicativo, dá esse erro.
Além disso, quando adiciono referência ao
Oracle.ManagedDataAccess.dll
adicionando isso no web.config
<add assembly="Oracle.ManagedDataAccess, Version=4.121.1.0, Culture=neutral, PublicKeyToken=89B483F429C47342"/>
dá esse erro
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.