Vill kunna komma åt min mysql database....använder ByteFX för att komma åt...asp.net (vb.net)-->mysql
Vad e det för fel man gör...? Skriver i VB.net en asp.net applikation...skriver allt i visual studio.net.
Finns det nått annat sätt att komma åt min mysql database..?
<code>
Dim mycn As New MySqlConnection()
mycn.ConnectionString = "Data Source=localhost;" & _
"Database=dbtest;" & _
"User ID=root;" & _
"Password=;" & _
"Command Logging=false"
mycn.ConnectionString = "Server=localhost;Database=dbPrelaq;User ID=root;Password=;"
Dim mycmd As New MySqlCommand()
mycmd.Connection = mycmd
mycmd.CommandText = "INSERT INTO m_inst (fltHastighet, fltArtikel)" & _
" VALUES ('" & tbHast.Text & "', '" & tbArtikel.Text & "')"
ListBox1.Items.Add(mycmd.CommandText)
mycmd.CommandType = CommandType.Text
mycmd.Connection.Open()
mycmd.ExecuteNonQuery()
mycmd.Connection.Close()
</code>
File or assembly name System, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: File or assembly name System, or one of its dependencies, was not found.