Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I am trying to make connection between myadmindatabase and asp.net mvc project which are deployed in godaddy server but it is giving error.When I run it in visual studio everything work fine having different connectionstring.please help.
Server Error in '/' 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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1044767
System.Data.Entity.Infrastructure.DependencyResolution.DefaultProviderFactoryResolver.GetService(Type type, Object key, Func`3 handleFailedLookup) +77


What I have tried:

<add name="xyzEntities" connectionstring="Data Source=123.12.123.123;port=3306;Integrated Security=false;Initial Catalog=databasename;User Id=myname;password=mypass;" providername="MySql.Data.MySqlClient">
Posted
Updated 25-Jul-19 6:23am
v2
Comments
Richard MacCutchan 25-Jul-19 11:57am    
At a guess, your server does not have MySQL installed.
Vivek Kansal 25-Jul-19 12:23pm    
I am using godady with mysql database plan.
Richard Deeming 25-Jul-19 12:35pm    
REPOST
This is exactly the same question you posted four days ago:
https://www.codeproject.com/Questions/5162825/Proplrm-in-connection-between-phpmyadmin-database[^]

1 solution

Read the error, it tells you exactly what the problem is:
Quote:
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]

At a guess, you need to contact your hosting service and check if they have MySql installed at all ... and then the MySql DLL's as part of the standard .NET loadout.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900