I wrote a piece of testing code using an oleDB connection to connect to a sybase database (code as follows):
Imports System.Data.OleDb
sub connect()
Dim PipeCon As OleDbConnection = New OleDbConnection("provider=sqloledb,data source=ABC_TEST," & _
"user id=test;password=test;database=test"
Dim pipecmd As OleDbCommand = New OleDbCommand()
pipecmd.CommandText = "select * from tblPriorDetails"
PipeCon.Open()
End Sub
I had a call from a form with a button that basically said "call connect()". Everytime it executed this command the below error message appeared.
"System.Security.SecurityException
Additional Info: Request Failed"
Could anyone tell me why this is happening and any remedies available?
Thanks!!!!!
Imports System.Data.OleDb
sub connect()
Dim PipeCon As OleDbConnection = New OleDbConnection("provider=sqloledb,data source=ABC_TEST," & _
"user id=test;password=test;database=test"
Dim pipecmd As OleDbCommand = New OleDbCommand()
pipecmd.CommandText = "select * from tblPriorDetails"
PipeCon.Open()
End Sub
I had a call from a form with a button that basically said "call connect()". Everytime it executed this command the below error message appeared.
"System.Security.SecurityException
Additional Info: Request Failed"
Could anyone tell me why this is happening and any remedies available?
Thanks!!!!!