I have tried in one form or another to connect to an Access database using the following connection:
OleDbConnection oConn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=Reports.mdb");
but I continue to get the following error
Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The database has no security set. Can anyone explain this particular error and how to bes connect to this database programatically?