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

Deployment (no replies)

$
0
0
I have created a .NET application that uses ...
Dim sb As New Text.StringBuilder
Dim cn As New MySql.Data.MySqlClient.MySqlConnection(My.Settings.ElationDBConn)
Dim cmd As New MySql.Data.MySqlClient.MySqlCommand("", cn)
Dim rs As MySql.Data.MySqlClient.MySqlDataReader = Nothing
....

cmd.CommandText = sb.ToString
cn.Open()
rs = cmd.ExecuteReader()
tblElationVitals = New DataTable

I user a schema table created from the DataReader above to create the columns for the datatable using the "ColumnName".

When I run the app on one machine it runs fine. When I deploy it to another machine, I get an error indicating duplicate column names when creating the DataTable, note the query executed fine, but the column set returned seems to be different between the two machines.

I used MySQLData ADO.Net driver for MySQL for .Net Core 1.0, Runtime version v4.0.30319, Version 6.10.5.0

Viewing all articles
Browse latest Browse all 1451

Trending Articles



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