gpt4 book ai didi

entity-framework - Entity Framework : unable to determine the provider name for provider factory of type 'system.data.sqlclient.sqlclientfactory'

转载 作者:行者123 更新时间:2023-12-05 02:22:51 36 4
gpt4 key购买 nike

我有一个使用 Entity Framework 和 SQLServer 的网站。当我尝试在 Azure 上运行我的应用程序时,出现以下错误:

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.

在本地一切正常。

最佳答案

我终于发现错误是由这个配置部分引起的(现在我不再使用了):

  <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>

我已将其删除,现在它可以正常工作了。

关于entity-framework - Entity Framework : unable to determine the provider name for provider factory of type 'system.data.sqlclient.sqlclientfactory' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26907079/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com