Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Going from bad to worse (1 reply)

$
0
0
I am trying to make MySQL work with ASP.NET (VS 2012 Web edition). I downloaded the MySql Workbench (community edition); created a table in one of the default dbs and can successfully query the table. So I know that works to some extent. Now I'm trying to create an ODBC connection. So I downloaded the 5.2 ANSI Drive (64-bit). But that didn't work. I put this into my webconfig file:

<connectionStrings>
<add name="MySQLConnStr" connectionString="{DRIVER=MySql ODBC 5.2 ANSI Driver};Database=world;Server=MySQL10;UID=XX;PWD=XXXXXX;"/>
</connectionStrings>

I get Datasource name not found; no drive specified.


I'm using the 32-bit driver.

From the Workbench, things look OK (to my untrained eye).

I've looked at ConnectionStrings.com but that doesn't seem to make a difference.

******************
NOT SURE WHAT HAPPENED: I moved the connection string data from the webconfig.xml to the app itself and, magically, it worked.


RON

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>