本文介绍了的EntityFramework:无法确定类型“system.data.sqlclient.sqlclientfactory'的供应商工厂的供应商名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须使用实体框架和SQLServer的网站。
当我尝试运行我在Azure上我碰到下面的错误应用程序:
I have an Website that use Entity Framework and SQLServer.WHen I trying to run my application on Azure I get the following error:
Unable to determine the provider name for provider factory of type 'system.data.sqlclient.sqlclientfactory'. make sure that the ado.net provider is installed or registered in the application config.
在premises一切工作正常。
On premises everything works fine.
推荐答案
我终于发现,错误是由配置部分(即现在的我不再使用)造成的:
I have finally discovered that the error was caused by this configuration section (that now I don't use anymore):
<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>
我已删除了它,现在它工作正常。
I have removed it and now it worked correctly.
这篇关于的EntityFramework:无法确定类型“system.data.sqlclient.sqlclientfactory'的供应商工厂的供应商名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!