Hello. My host is GoDaddy, and I need some help.
First of all I need to know if it is possible to use SqlDataSource-component with a MySql-database.
I do have MySQL Connector Net 5.0.3 installed and I did place the MySql.Data.dll in the bin-directory.
Had to recompile that dll to accept another trustlevel or something so I did that.
The conenctionstring I use look like this (from web.config):
<add name="Conn" connectionString="Server=xxx.secureserver.net;Database=mydatabase;uid=myuserid;pwd=mypassword;" providerName="MySql.Data.MySqlClient"/>
The SqlDataSource:
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Conn %>" SelectCommand="SELECT country,city,event,date FROM shows" ProviderName="<%$ ConnectionStrings:Conn.ProviderName %>"></asp:SqlDataSource>
And now to my sweet little error:
System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1372135
System.Web.UI.WebControls.SqlDataSource.GetDbProviderFactory() +63...
etc etc...
This guy seem to be able to do it without problem:
Filter A GridView After The Initial Bind
Am I doing something wrong, is it something with GoDaddy, or is it simply not yet possible to use these features with MySql?
(I code in C#)
Thanks.