vb.net The error is: Could not load file or assembly 'System.Data.dll' is not a valid Win32

0

The problem I have with the knowledge that everything was in working time without a problem

An unhandled exception of type 'System.InvalidOperationException' occurred in myprogram.exe

Additional information: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'System.Data.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

Imports System.Management

Imports MySql.Data.MySqlClient
Imports AutoUpdaterDotNET
Imports System.Net
Imports System.Text.RegularExpressions
Imports System.Threading

Public Function jokenconn() As MySqlConnection
    Return New MySqlConnection("server=localhost;user id=exeportal;password=00000;database=00000")
End Function

I think the problem here

 Dim cmd As New MySqlCommand
            Dim da As New MySqlDataAdapter
            Dim con As MySqlConnection = jokenconn()

            sql = String.Format("SELECT * FROM `users` WHERE username= '{0}' and status= '{1}'", TextBox1.Text, 1)
                .Connection = con
                .CommandText = sql
            End With
            da.SelectCommand = cmd
            da.Fill(publictable)
            If publictable.Rows.Count > 0 Then
                Dim user_type, name As String
                If user_type = "" Then
                ElseIf user_type = "Encoder" Then
                Else
                    'welcome
                End If

            Else
                MsgBox("error")
                End

            End If
            da.Dispose()
            con.Clone()
vb.net
asked on Stack Overflow Aug 4, 2016 by Mohamed Ahmed • edited Aug 4, 2016 by Mohamed Ahmed

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0