Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OleDbConnection Error
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
OleDbConnection Error
Divers
Thread ID:
00771522
Message ID:
00771522
Vues:
62
Sub Main()
AddRecord()
End Sub

Sub AddRecord()
Dim strConnectionString As String = "Provider=VFPOLEDB.1;Data Source=clients.dbc;password='';user id=''"
Dim objConn As New OleDbConnection(strConnectionString)
objConn.Open()
Dim strSQL As String = "Insert into accounts (mscacct) VALUES ('MSCTEST')"
Dim objCmd As New OleDbCommand(strSQL, objConn)
Try
objCmd.ExecuteNonQuery()
Catch e As Exception
Console.WriteLine(e.Message)
End Try
Console.WriteLine("Record Added")
End Sub


I' getting an error when executing the exe in line AddRecord() in Sub Main().

An unhandled exception of type 'System.Security.SecurityException' occurred in ADOtoDBF.exe

Additional information: Request failed.
Francisko Paternoster
fpater@patercorp.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform