Login
网站首页 > 文章中心 > 其它

异常: Unable to determine the provider name for provider factory of type |*|#8216;MySql.Data.MySqlClient.MySqlClientFactory|*|#8217;._异常的意思

作者:小编 更新时间:2023-10-07 13:09:56 浏览量:274人看过

报错信息:

异常: Unable to determine the provider name for provider factory of type 'MySql.Data.MySqlClient.MySqlClientFactory'. Make sure that the ADO.NET provider is installed or registered in the application config.
⑥ 来源: EntityFramework
⑦ 实例:    在 System.Data.Entity.Utilities.DbProviderFactoryExtensions.GetProviderInvariantName(DbProviderFactory factory)
   在 System.Data.Entity.Infrastructure.DependencyResolution.DefaultInvariantNameResolver.GetService(Type type, Object key)
   在 System.Collections.Concurrent.ConcurrentDictionary+2.GetOrAdd(TKey key, Func+2 valueFactory)
   在 System.Linq.Enumerable.WhereSelectArrayIterator+2.MoveNext()
   在 System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable+1 source, Func+2 predicate)
   在 System.Data.Entity.Infrastructure.DependencyResolution.RootDependencyResolver.GetService(Type type, Object key)
   在 System.Linq.Enumerable.WhereSelectArrayIterator+2.MoveNext()
   在 System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable+1 source, Func+2 predicate)
   在 System.Data.Entity.Infrastructure.DependencyResolution.CompositeResolver+2.GetService(Type type, Object key)
   在 System.Data.Entity.Infrastructure.DependencyResolution.DbDependencyResolverExtensions.GetService[T](IDbDependencyResolver resolver, Object key)
   在 System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInvariantName(DbConnection connection)
   在 System.Data.Entity.Internal.InternalConnection.get_ProviderName()
   在 System.Data.Entity.Internal.DefaultModelCacheKeyFactory.Create(DbContext context)
   在 System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
   在 System.Data.Entity.Internal.InternalContext.Initialize()
   在 System.Data.Entity.Internal.LazyInternalContext.get_ObjectContext()
   在 System.Data.Entity.Internal.InternalContext.GetStateEntry(Object entity)
   在 System.Data.Entity.Internal.InternalEntityEntry..ctor(InternalContext internalContext, Object entity)
   在 System.Data.Entity.DbContext.Entry[TEntity](TEntity entity)
   在 Qianchen.DataBase.MySqlEx.Database.Insert[T](T entity)
   在 Qianchen.Application.Base.SystemModule.LogService.WriteLog(LogEntity logEntity)

Web.config文件加入配置解决:




异常: Unable to determine the provider name for provider factory of type |*|#8216;MySql.Data.MySqlClient.MySqlClientFactory|*|#8217;._异常的意思

以上就是土嘎嘎小编大虾米为大家整理的相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!

版权声明:倡导尊重与保护知识产权。未经许可,任何人不得复制、转载、或以其他方式使用本站《原创》内容,违者将追究其法律责任。本站文章内容,部分图片来源于网络,如有侵权,请联系我们修改或者删除处理。

编辑推荐

热门文章