asp.net – 分析器错误消息:无法生成代码.抛出了类型’System.Data.Design.InternalEx
发布时间:2020-05-23 23:42:09 所属栏目:asp.Net 来源:互联网
导读:我在使用ODP.net时收到此错误.当我包含连接时出现错误 Connection AppSettingsObjectName=Web.config AppSettingsPropertyName=BannerCS ConnectionStringObject= IsAppSettingsProperty=true Modifier=Assembly Name=BannerC
|
我在使用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" /> 在网站项目的.XSD文件中 <add name="BannerCS" connectionString="DATA SOURCE=******;PASSWORD=**********;PERSIST SECURITY INFO=True;USER ID=*********" providerName="Oracle.ManagedDataAccess.Client" /> 我可以通过在数据集的数据表中运行SQL查询来查看数据.基于.net 3.5的网站项目也不会在编译时出现任何错误.但是,当我运行应用程序时,它会出现此错误. 当我添加引用时
通过在web.config中添加它 <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,PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified. 解决方法此错误来自.net版本3.5 解决方案是将.net版本升级到.net 4.0或更高版本(编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – Microsoft WebMatrix和Visual Studio有什么区别
- asp.net-mvc – RequireHttps导致Amazon Elastic Load Bala
- asp.net-identity-2 – Asp.Net身份保存用户没有电子邮件
- asp.net-mvc – 实时ASP.NET MVC Web应用程序
- 在ASP.NET中,当HttpContext.Current为NULL时,如何获取physc
- asp.net-mvc – 实现MVC 5 IAuthenticationFilter
- asp.net-mvc – 如何在razor(CSHTML)中设置contenttype?
- CORS支持PUT和DELETE与ASP.NET Web API
- asp.net – 实体框架与存储过程
- ASP.NET登录页面重定向问题
