Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleDbConnection Error
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
OleDbConnection Error
Miscellaneous
Thread ID:
00771522
Message ID:
00771522
Views:
63
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
Next
Reply
Map
View

Click here to load this message in the networking platform