Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection to Access db
Message
De
20/04/2009 15:52:54
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Connection to Access db
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Jet/Access Engine
Application:
Desktop
Divers
Thread ID:
01395646
Message ID:
01395646
Vues:
98
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform