ASP.NET和MySQL .Net Framework数据提供程序问题
发布时间:2020-12-16 07:37:50 所属栏目:asp.Net 来源:网络整理
导读:我是ASP.NET的新手.每次我尝试运行我的应用程序时,都会遇到下面的错误消息.我已经多次为 MySQL安装.Net Framework Data Provider. 我希望有人可以帮助我.提前致谢. Server Error in '/PLDT QuickSearcher' Application.Unable to find the requested .Net Fr
我是ASP.NET的新手.每次我尝试运行我的应用程序时,都会遇到下面的错误消息.我已经多次为
MySQL安装.Net Framework Data Provider.
我希望有人可以帮助我.提前致谢. Server Error in '/PLDT QuickSearcher' Application. Unable to find the requested .Net Framework Data Provider. It may not be installed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed. 解决方法
添加MySql.Data.dll作为项目的参考
将此块添加到web.config: <system.data> <DbProviderFactories> <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory,MySql.Data" /> </DbProviderFactories> </system.data> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-3.5 – 我可以查看soap wcf调用发出的原始请求
- 从asp.net c#设置style.display
- asp.net-mvc – 动作过滤器异常
- asp.net-mvc-3 – 在MVC3中禁用HTML.TextAreaFor
- asp.net – 配置示例
- asp.net – 比HttpHandlers快的东西?
- asp.net-web-api – 使用ASP.NET MVC 6 WebAPI从Auth0获取用
- VS 2013 RC中缺少ASP.NET Web窗体脚手架功能
- asp.net-mvc – 在Hub,SignalR之外获取connectionId
- asp.net-mvc – jQuery.Validation.Unobtrusive客户端验证仅
推荐文章
站长推荐
- asp.net – 线程安全和MEF目录
- asp.net-mvc – IIS6中的ASP.NET MVC压缩选项
- 在WebApi Core ConfigureServices中访问services
- asp.net – 如何调用一个特定的UpdatePanel加载后
- ASP.NET MVC4模型验证
- asp.net-mvc – 在我的asp.net MVC解决方案中保持
- asp.net – 如何为.Net网站,Windows服务等创建安
- asp.net-mvc – 未部署ASP.NET MVC3区域_ViewSta
- .net – 制作类似TinyURL.com的简短网址
- asp.net-mvc – angular js和asp.net mvc 4示例应
热点阅读