entity framework - error 0175: The ADO.NET provider with invariant name 'MySql.Data.MySqlClient' -


i using microsoft asp.net identity owin.one developer change connection string mysql after change connection string mssql instead of mysql give error in update-database command

error 0175: ado.net provider invariant name 'mysql.data.mysqlclient' either not registered in machine or application config file, or not loaded. see inner exception details. @ system.data.entity.core.metadata.edm.storeitemcollection.loader.throwonnonwarningerrors()

why search 'mysql.data.mysqlclient'?there no mysql.data.mysqlclient in project or webconfig or configuration

here webconfig

<?xml version="1.0" encoding="utf-8"?> <!--   more information on how configure asp.net application, please visit   http://go.microsoft.com/fwlink/?linkid=169433   --> <configuration>   <configsections>     <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 -->     <!-- more information on entity framework configuration, visit http://go.microsoft.com/fwlink/?linkid=237468 -->     <section name="entityframework" type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=6.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089" requirepermission="false" />   </configsections>   <system.web>     <compilation debug="true" targetframework="4.5" />     <httpruntime targetframework="4.5" />     <customerrors mode="off" />   </system.web>   <system.webserver>     <modules runallmanagedmodulesforallrequests="true" />     <handlers>       <remove name="extensionlessurlhandler-integrated-4.0" />       <remove name="optionsverbhandler" />       <remove name="traceverbhandler" />       <add name="extensionlessurlhandler-integrated-4.0" path="*." verb="*" type="system.web.handlers.transferrequesthandler" precondition="integratedmode,runtimeversionv4.0" />     </handlers>   </system.webserver>   <connectionstrings>     <add name="authcontext" connectionstring="data source=ip;initial catalog=dbname;user id=user;pwd=password;max pool size = 30000;pooling = true;connection timeout=30000000" providername="system.data.sqlclient" />    </connectionstrings>   <runtime>     <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">       <dependentassembly>         <assemblyidentity name="microsoft.owin" publickeytoken="31bf3856ad364e35" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-3.0.1.0" newversion="3.0.1.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="microsoft.aspnet.signalr.core" publickeytoken="31bf3856ad364e35" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-2.2.0.0" newversion="2.2.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="newtonsoft.json" publickeytoken="30ad4fe6b2a6aeed" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-6.0.0.0" newversion="6.0.0.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="system.web.http" publickeytoken="31bf3856ad364e35" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-5.2.3.0" newversion="5.2.3.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="system.net.http.formatting" publickeytoken="31bf3856ad364e35" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-5.2.3.0" newversion="5.2.3.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="microsoft.owin.security" publickeytoken="31bf3856ad364e35" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-3.0.1.0" newversion="3.0.1.0" />       </dependentassembly>       <dependentassembly>         <assemblyidentity name="microsoft.owin.security.oauth" publickeytoken="31bf3856ad364e35" culture="neutral" />         <bindingredirect oldversion="0.0.0.0-3.0.1.0" newversion="3.0.1.0" />       </dependentassembly>     </assemblybinding>   </runtime>   <entityframework>     <defaultconnectionfactory type="system.data.entity.infrastructure.localdbconnectionfactory, entityframework">       <parameters>         <parameter value="v11.0" />       </parameters>     </defaultconnectionfactory>     <providers>       <provider invariantname="system.data.sqlclient" type="system.data.entity.sqlserver.sqlproviderservices, entityframework.sqlserver" />     </providers>   </entityframework> </configuration> 


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -