Can't connect to the MySQL database online. Please help!http://forums.asp.net/t/1246533.aspx/1?Can+t+connect+to+the+MySQL+database+online+Please+help+Tue, 22 Apr 2008 17:07:42 -040012465332292264http://forums.asp.net/p/1246533/2292264.aspx/1?Can+t+connect+to+the+MySQL+database+online+Please+help+Can't connect to the MySQL database online. Please help! <p>&nbsp;Hi guys,</p> <p>I'm new to ASP.NET (as you will be able to tell, i'm sure ; )&nbsp;</p> <p>I can't connect to MySQL database on the live server. I've been trying for days and am going mad!</p> <p>&nbsp;<br> This is what i got form my host(will change security sensitive stuff):</p> <p>&nbsp;<br> <span style="font-family:'Calibri','sans-serif'">Your MySQL database settings</span> <br> <span style="font-family:'Calibri','sans-serif'">Server Name:&nbsp; &nbsp;&nbsp; mysql-913</span> <br> <span style="font-family:'Calibri','sans-serif'">Server IP Address:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 243.131.32.34</span><br> <span style="font-family:'Calibri','sans-serif'">Database Name:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zebradat</span> <br> <span style="font-family:'Calibri','sans-serif'">Database Username:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; zebradatadmin</span> <br> <span style="font-family:'Calibri','sans-serif'">Database Password:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 3vex491</span> </p> <p>&nbsp;</p> <p>Can someone tell me please what my connection string should look like based on the above.</p> <p>Is below correct??&nbsp; <br> </p> <p>&nbsp;&lt;add name=&quot;ConnectionString&quot; connectionString=&quot;Data Source=<span style="font-family:'Calibri','sans-serif'">243.131.32.34</span>;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Initial Catalog=zebradat;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; User ID=zebradatadmin;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Password=3vex491;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Integrated Security=False;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; User Instance=True&quot; providerName=&quot;System.Data.SqlClient&quot;/&gt;<br> &nbsp;</p> <p>I need to name my database zebradat.mdf? Am i correct?</p> <p>Your help will be much appreciated!<br> &nbsp;</p> 2008-04-11T15:24:07-04:002292415http://forums.asp.net/p/1246533/2292415.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>You probably don't want to be using System.Data.SqlClient. You should download and install a MySQL-specific .NET provider of which there are a few. Then you can get your connection string format here:</p> <p><a href="http://www.connectionstrings.com/?carrier=mysql">http://www.connectionstrings.com/?carrier=mysql</a></p> <p>Though most hosting providers have some option to let you view the DB connection string.</p> <p>Hope this helps...</p> 2008-04-11T16:19:00-04:002292484http://forums.asp.net/p/1246533/2292484.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>You need to go to this page</p> <p><a href="http://dev.mysql.com/downloads/#connector-net">http://dev.mysql.com/downloads/#connector-net</a></p> <p>And download <strong>MySQL Connector/Net</strong> </p> <p>Then Just like you would use System.Data.SqlClient, </p> <p>you will have <font size="2">MySql.Data.MySqlClient once you add a reference to the files downloaded above.</font></p> <p><font size="2">Then you will have a set of parallel classes similar to System.Data.SqlClient</font></p> <p><font size="2">SqlCommand = <font size="2">MySql.Data.MySqlClient.</font><font color="#2b91af" size="2">MySqlCommand</font></font></p> <p><font size="2"><font color="#2b91af" size="2">SqlConnection = <font size="2">MySql.Data.MySqlClient.</font><font color="#2b91af" size="2">MySqlConnection</font></font></font></p> <p><font size="2"><font color="#2b91af" size="2"><font color="#2b91af" size="2">And so on...</font></font></font></p> <p><font size="2"><font color="#2b91af" size="2"><font color="#2b91af" size="2">As for the format of the connection string</font></font></font></p> <p><font size="2"><font color="#2b91af" size="2"><font color="#2b91af" size="2">It is like this</font></font></font></p> <font size="2"><font color="#2b91af" size="2"><font color="#2b91af" size="2"><font size="2"></font><font color="#0000ff" size="2">private</font><font size="2"> </font><font color="#0000ff" size="2">static</font><font size="2"> </font><font color="#0000ff" size="2">string</font><font size="2"> _connectionString =</font></font><font size="2"> <p></font><font color="#a31515" size="2">@&quot;Persist Security Info=False;&quot;</font><font size="2"> &#43;</p> </font><font color="#a31515" size="2">@&quot;database={0};&quot;</font><font size="2"> &#43;</font></font><font size="2"> <p></font><font color="#a31515" size="2">@&quot;server={1};&quot;</font><font size="2"> &#43;</p> </font><font color="#a31515" size="2">@&quot;user id={2};&quot;</font><font size="2"> &#43;</font></font><font size="2"> <p></font><font color="#a31515" size="2">@&quot;Password={3};&quot;</font><font size="2"> &#43;</p> <p></font><font color="#a31515" size="2">@&quot;Port={4};&quot;</font><font size="2">;</font></p> <p><font size="2">Where you fill in each value in its place using String.Format.</font></p> <p><font size="2">Hope this helps.&nbsp;</font></p> <p><font size="2">&nbsp;</p> </font> 2008-04-11T16:44:09-04:002295835http://forums.asp.net/p/1246533/2295835.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Thank you so much for your replys guys. Will try this out and let you know how I get on. Thnx again<br> </p> 2008-04-14T08:25:10-04:002296833http://forums.asp.net/p/1246533/2296833.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! I have downloaded the connector, but how do I utilise it /&quot;add the reference&quot; to it? I've installed and run locally.. any links to a step by step guide as the instructions on the dev.mysql.com are too advanced for me. I need very basic noob step-by-step instructions as I have no experience w MySQL databases.. Thank you very much in advance<br> 2008-04-14T16:08:12-04:002296863http://forums.asp.net/p/1246533/2296863.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Right click on references under your project. Choose the Browse tab. and then browse for the dll that you downloaded, the last time I downloaded it, its name was &quot;MySql.Data.dll&quot;</p> <p>&nbsp;</p> 2008-04-14T16:23:32-04:002297340http://forums.asp.net/p/1246533/2297340.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p><font size="2">Thank you very much ralph! I have referenced MySql.Data.dll as per your instruction, but am wondering are any new strings suppose to appear in my web.config file (or in my assembly or...)as the result of this action?? Where can find those classes that you mention below?<br> </font></p> <p>&nbsp;&quot;</p> <p style="font-style:italic">You need to go to this page</p> <p style="font-style:italic"><a href="http://dev.mysql.com/downloads/#connector-net">http://dev.mysql.com/downloads/#connector-net</a></p> <p style="font-style:italic">And download <strong>MySQL Connector/Net</strong> </p> <p style="font-style:italic">Then Just like you would use System.Data.SqlClient, </p> <p style="font-style:italic">you will have <font size="2">MySql.Data.MySqlClient once you add a reference to the files downloaded above.</font></p> <p style="font-style:italic"><font size="2">Then you will have a set of parallel classes similar to System.Data.SqlClient</font></p> <p style="font-style:italic"><font size="2">SqlCommand = <font size="2">MySql.Data.MySqlClient.</font><font color="#2b91af" size="2">MySqlCommand</font></font></p> <p style="font-style:italic"><font size="2"><font color="#2b91af" size="2">SqlConnection = <font size="2">MySql.Data.MySqlClient.</font><font color="#2b91af" size="2">MySqlConnection</font></font></font></p> <p style="font-style:italic"><font size="2"><font color="#2b91af" size="2"><font color="#2b91af" size="2">And so on...</font></font></font></p> <p style="font-style:italic"><font size="2"><font color="#2b91af" size="2"><font color="#2b91af" size="2">As for the format of the connection string</font></font></font></p> <p style="font-style:italic"><font size="2"><font color="#2b91af" size="2"><font color="#2b91af" size="2">It is like this</font></font></font></p> <font size="2" style="font-style:italic"><font color="#2b91af" size="2"><font color="#2b91af" size="2"><font color="#0000ff" size="2">private</font><font size="2"> </font><font color="#0000ff" size="2">static</font><font size="2"> </font><font color="#0000ff" size="2">string</font><font size="2"> _connectionString =</font></font><font size="2"> </font> <p><font size="2"><font color="#a31515" size="2">@&quot;Persist Security Info=False;&quot;</font><font size="2"> &#43;...................&quot;</font></font></p> <p>&nbsp;</p> </font></font> <p>This is supppose to go into the web.config file i assume?</p> <p>Can you please elaborate on this, give examples,(as I did hours of search/reading after your last reply but didn't get anywhere/am non the wiser : (</p> <p>Many thanks for all your help ralph!&nbsp;</p> <p><br> </p> 2008-04-14T20:22:04-04:002298390http://forums.asp.net/p/1246533/2298390.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>If you have added the reference then all you need to continue is</p> <p>MySqlConnection connection = new MySqlConnection(your connection string here)</p> <p>Your connection string would be</p> <font size="2"> <p></font><font color="#a31515" size="2">&quot;database={0};</font><font color="#a31515" size="2">server={1};</font><font color="#a31515" size="2">user id={2};</font><font color="#a31515" size="2">Password={3};</font><font color="#a31515" size="2">Port={4};&quot;</font></p> <p><font color="#a31515">Please fill the appropriate data instead of {0} {1}...</font></p> <p><font color="#a31515">server is the hostname or ip</font></p> <p><font color="#a31515">database is the MySql schema or the database name that is being used</font></p> <p><font color="#a31515">You can omit the Port.</font></p> <p><font color="#a31515">then try </font><font color="#000000">connection .Open and see if you can connect.</font></p> <p><font color="#000000">The rest is pretty similar to all ADO.NET operations, Adapter, DataSet, ExecuteNonQuery...</font></p> <p><font color="#000000">Hope this helps.<font size="2"></p> </font></font> 2008-04-15T09:00:50-04:002298542http://forums.asp.net/p/1246533/2298542.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p><font color="#0000ff"></font></p> <p>Thanks ralph</p> <p>This is my string. This ok?</p> <font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">connectionStrings</font><font color="#0000ff" size="2">&gt;</font><font color="#0000ff" size="2"> <p>&lt;</font><font color="#a31515" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">name</font><font color="#0000ff" size="2">=</font><font color="#000000" size="2">&quot;</font><font color="#0000ff" size="2">ConnectionString</font><font size="2"><font color="#000000">&quot;</font></p> </font><font size="2"></font><font color="#ff0000" size="2">MySqlConnection</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">connection</font><font color="#0000ff" size="2"> = </font><font color="#ff0000" size="2">new</font><font color="#0000ff" size="2"> </font> <font color="#ff0000" size="2">MySqlConnection </font><font color="#000000" size="2"><font size="2"></font></font><font color="#000000" size="2"><font size="2"> <p>(&quot;</font><font color="#0000ff" size="2">database=zebradat;server=243.131.32.34;user id=zebradatadmin;Password=3vex491;</font><font size="2">&quot;)</p> </font></font><font size="2"></font><font size="2"></font><font color="#ff0000" size="2">providerName</font><font color="#0000ff" size="2">=</font><font color="#000000" size="2">&quot;</font><font color="#0000ff" size="2">MySql.Data.MySqlClient</font><font color="#000000" size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</font><font color="#0000ff" size="2"></font><font color="#0000ff" size="2"> <p>&lt;/</font><font color="#a31515" size="2">connectionStrings</font><font color="#0000ff" size="2">&gt;</font></p> <p><font color="#0000ff" size="2">Still not able to connect am afraid.</font></p> <p><font color="#0000ff" size="2">I get the runtime error</font></p> <font color="#0000ff" size="2"><span> <h1>Server Error in '/' Application. <hr width="100%" color="silver" size="1"> </h1> <h2><i>Runtime Error</i> </h2> <p></span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. <br> <br> <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br> <br> <table class="" width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td class=""> <pre>&lt;!-- Web.Config Configuration File --&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;customErrors mode=&quot;Off&quot;/&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre> </td> </tr> </tbody> </table> <br> <b>Notes:</b> The current error page you are seeing can be replaced by a custom error page by modifying the &quot;defaultRedirect&quot; attribute of the application's &lt;customErrors&gt; configuration tag to point to a custom error page URL.<br> <br> <table class="" width="100%" bgcolor="#ffffcc"> <tbody> <tr> <td class=""> <pre>&lt;!-- Web.Config Configuration File --&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;customErrors mode=&quot;RemoteOnly&quot; defaultRedirect=&quot;mycustompage.htm&quot;/&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre> </td> </tr> </tbody> </table> </font></p> </font> 2008-04-15T10:23:35-04:002298575http://forums.asp.net/p/1246533/2298575.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>ok 3 things.</p> <p>1. Please tell me you did not write your password in your post :) If you did, I suggest you change your password, as hackers can get to this post easily.</p> <p>2. Before you add your connection string to your Web.Config. use Use it as a string directly in the code that I sent you last. In other words instead of writing it in web.config, pass it as a parameters to the MySqlConnection.</p> <p>3. Edit your Web.Config file to allow you to see errors remotely, follow the instructions on the page (setting the custom errors to off instead of <font color="#0000ff" size="2"><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">RemoteOnly)</p> </font></font> 2008-04-15T10:45:00-04:002298631http://forums.asp.net/p/1246533/2298631.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Thnx for the prompt reply.</p> <p>re;&nbsp;pt.&nbsp;1. No i didn't. I am a noob but not that much of a noob : ) I've set that up as per&quot;This is what i got form my host(will change security sensitive stuff):</p> <p><br> <span style="font-family:'Calibri','sans-serif'">Your MySQL database settings</span> <br> <span style="font-family:'Calibri','sans-serif'">Server Name:&nbsp; &nbsp;&nbsp; mysql-913</span> <br> <span style="font-family:'Calibri','sans-serif'">Server IP Address:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 243.131.32.34</span><br> <span style="font-family:'Calibri','sans-serif'">Database Name:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zebradat</span> <br> <span style="font-family:'Calibri','sans-serif'">Database Username:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; zebradatadmin</span> <br> <span style="font-family:'Calibri','sans-serif'">Database Password:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 3vex491</span>&quot;</p> <p>re; pt.2. Pass it as a param. in the assembly of/ or&nbsp;the page itself&nbsp;on which data is supposed to be displayed/pulled in? or? And is this C#?.. since I'm using VB.&nbsp; Could you please copy and paste the whole string from somewhere..&nbsp;changing/removing the&nbsp;security sensitive stuff.. obviously ;)&nbsp;</p> <p>re; pt.3.&nbsp; you mean setting <font color="#a31515" size="2">customErrors</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">mode</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Off</font><font size="2">&quot;&nbsp; ? I've done that some time ago...&nbsp;&nbsp;</font></p> <p><font size="2">&nbsp;Thank you ralph</font><font size="2"></p> </font> 2008-04-15T11:24:40-04:002298666http://forums.asp.net/p/1246533/2298666.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>pt2: Well yes, I am assuming you know how to work with ADO.NET right? Do you know how to use SqlConnection? I was assuming so and just providing you with the fill in the blanks between MS Sql classes and MySql classes, if you are not very familier with ADO.NET Google up some simple samples on how to connection to a database through asp.net using MS SQL and when you understand that you will see the MySql solution easily. Sorry about C#, yes if I knew VB I would write that for you, but you are gonna do the translation yourself.</p> <p>As for the code, I already gave it to you several times :) but I guess you are misunderstanding it as a connection string to be put in Web.Config</p> <p>here it is again, remember this is your C# Code</p> <p><font color="#ff0000">MySqlConnection</font><font color="#0000ff" size="2"> </font> <font color="#ff0000" size="2">connection</font><font color="#0000ff" size="2"> = </font><font color="#ff0000" size="2">new</font><font color="#0000ff" size="2"> </font> <font color="#ff0000" size="2">MySqlConnection </font><font color="#000000" size="2"><font size="2">(&quot;</font><font color="#0000ff" size="2">database=zebradat;server=243.131.32.34;user id=zebradatadmin;Password=3vex491;</font><font size="2">&quot;);</font></font></p> <p><font color="#000000" size="2"><font size="2">connection.Open(); // your connection should open now.</font></font></p> <p><font color="#000000" size="2"><font size="2">pt3: yes that is correct, but the error that your site is giving you indicates that it is not put to off, double check it.</font></font></p> <p><font color="#000000" size="2"><font size="2">Regards.</p> </font></font> 2008-04-15T11:44:10-04:002298835http://forums.asp.net/p/1246533/2298835.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>No, I'm not familiar w ado.net I'm afraid : (&nbsp;Will research... </p> <p>As for the <font color="#a31515" size="2">customErrors</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">mode</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Off</font><font size="2">&quot; .. it is off.. but I know what you mean. </font><font size="2">It was showing me different(more specific)&nbsp;error messages before it's just that it displyed this one after i entered &amp;uploaded the above (<font color="#0000ff" size="2">&lt;</font><font color="#a31515" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">name</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">ConnectionString</font><font size="2">&quot; </font><font color="#ff0000" size="2">MySqlConnection</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">connection</font><font color="#0000ff" size="2"> = </font><font color="#ff0000" size="2">new</font><font color="#0000ff" size="2"> </font> <font color="#ff0000" size="2">MySqlConnection</font><font size="2">(&quot;</font><font color="#0000ff" size="2">databas.........)&nbsp;</font> as the connection string.. LOL&nbsp;</font></p> <p><font size="2">Thank you so much for all your help ralph! Will let you know how I get on...</p> </font> 2008-04-15T12:51:28-04:002299209http://forums.asp.net/p/1246533/2299209.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Sure, you can find a lot of resources on the net for this and later on if you need further help, do not hesitate.</p> 2008-04-15T14:58:14-04:002299210http://forums.asp.net/p/1246533/2299210.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Sure, you can find a lot of resources on the net for this as the topic is way too big for a post. </p> <p>And later on if you need further help, do not hesitate.</p> <p>&nbsp;</p> 2008-04-15T14:59:01-04:002299415http://forums.asp.net/p/1246533/2299415.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>I understand ralph. Thank you for all the help so far</p> 2008-04-15T16:17:27-04:002307327http://forums.asp.net/p/1246533/2307327.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Hi Ralph,</p> <p>Hope you well.</p> <p>I've been playing around. Discovering new things re; ADO.net.. still fuzzy but getting there..</p> <p>This is the error I've been getting:</p> <p><span></p> <h1>Server Error in '/' Application. <hr color="silver" size="1" width="100%"> </h1> <h2><i>Configuration Error</i> </h2> </span><font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "><b>Description: </b>An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br> <br> <b>Parser Error Message: </b>Could not load file or assembly 'MySql.Data, Version=5.1.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.<br> <br> <b>Source Error:</b> <br> <br> <table bgcolor="#ffffcc" width="100%"> <tbody> <tr> <td> <pre>Line 27: &lt;compilation debug=&quot;true&quot; strict=&quot;false&quot; explicit=&quot;true&quot;&gt;<br>Line 28: &lt;assemblies&gt;<br><font color="red">Line 29: &lt;add assembly=&quot;MySql.Data, Version=5.1.5.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D&quot;/&gt;&lt;/assemblies&gt;&lt;/compilation&gt;<br></font>Line 30: &lt;pages&gt;<br>Line 31: &lt;namespaces&gt;</pre> </td> </tr> </tbody> </table> <br> <b>Source File: </b>e:\domains\m\mangonet.ourwebnet.com\user\htdocs\web.config<b> &nbsp;&nbsp; Line: </b>29 <br> <br> <b>Assembly Load Trace:</b> The following information can be helpful to determine why the assembly 'MySql.Data, Version=5.1.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded.<br> <br> <table bgcolor="#ffffcc" width="100%"> <tbody> <tr> <td> <pre>WRN: Assembly binding logging is turned OFF.<br>To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.<br>Note: There is some performance penalty associated with assembly bind failure logging.<br>To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].<br></pre> </td> </tr> </tbody> </table> <br> <hr color="silver" size="1" width="100%"> <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433</font>&nbsp; <p></p> <p>&nbsp;</p> <p>Is this something to do with MySql .net connector or??&nbsp;</p> 2008-04-18T16:16:33-04:002307939http://forums.asp.net/p/1246533/2307939.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Is this error from the website on the same computer that you are developing the application? I mean did you deploy it on another machine?</p> <p>Try removing the reference to MySql.Data.dll in your project and readding it. From the way I see it, this is just a VS mess up.</p> <p>Let me know.</p> 2008-04-18T22:24:43-04:002310229http://forums.asp.net/p/1246533/2310229.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>It's the error on the remote server(host).. not local.</p> <p>Will try removing the MySql.Data.dll reference&nbsp;and uploading.. Thanks</p> 2008-04-21T08:28:13-04:002310361http://forums.asp.net/p/1246533/2310361.aspx/1?Re+Can+t+connect+to+the+MySQL+database+online+Please+help+Re: Can't connect to the MySQL database online. Please help! <p>Make sure you have the MySql.Data.dll on the server as well (in the bin directory) or else it will give you the above error.</p> 2008-04-21T09:39:40-04:00