It’s Khayer, Bangladesh


Unable to find the requested .Net Framework Data Provider

I have faced very complex problem when i am using Mysql Datasource in SQLDatasource. It give reference error like “Unable to find the requested .Net Framework Data Provider” in the time of hosting the site in remote server where Mysql Data connector is not install. After spending long time in the web, i get the solution of this problem. This give me relax at last.

Cause: I have used SQLDatasource to populated a grid to retrieve data from the internet. here i select mysql as data source.

Here is SQLDatasource Setting,

Here is my connection String

This configuration work well in local machine. But when i upload this site for hosting in remote server, this encounter an error which says that the mysql provider name is not found.

Solution:
I have added some extra configuration in my web.config file.

Again it is noted that all above change is applicable only to the application “web.config” file in the host server. If host server already installs mysql data connector, then there is no change required. I am using Mysql Data Connector Version 5.1. For Upper version i will be required some minor change in the Control assembly ID number.

Here i give the snap shoot and download link  of “web.config” file of my well working site,

Download

Please make comment if this post do any help to you.

Thanks
Khayer
GIS Programmer, CEGIS
Bangladesh

References:

http://forums.asp.net/p/1253461/2323702.aspx

http://forums.mysql.com/read.php?38,145720,145760#msg-145760


7 Comments so far
Leave a comment

Thanks, It worked. It’s really helpful. Keep it up! :)

Comment by Raj

Very usefull, I was searching a solution for at least 3 hours now. You save my day in 30 seconds.
Thanks.

Comment by Paulo Melo

Thank you so much! This worked out perfectly! For those using IXWebHosting, remember to go to Account Settings > Dedicated Application Pool and set up your domain there too.

Best!!

Comment by Mr Bluesummers

Dear Khayer

Greetings from England and thank you very much for posting your solution. On my host web.config I have only added the tag so far, it worked without adding the tags at this stage. It may be that they are already included in a “global” setting somewhere.

Comment by Dr Phil

Dear Khayer

I should not have used angle braces in my last post! It should have read “On my host web.config I have only added the [DbProviderFactories] tag so far, it worked without adding the [add namespace] tags at this stage. It may be that they are already included in a “global” setting somewhere.” Sorry about that.

Comment by Dr Phil

hi,
first, thanks to you for your help, but my application couldn’t work on the local machine, my problem related with local, i carry out your methodology but i get an error like this:
System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Please help me!

Comment by Oğuz Yılmaz

Install Latest version of mysql data connector in your local machine.

Comment by khayer




Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>