Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection to Access db
Message
From
20/04/2009 15:52:54
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Connection to Access db
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Jet/Access Engine
Application:
Desktop
Miscellaneous
Thread ID:
01395646
Message ID:
01395646
Views:
97
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?
Next
Reply
Map
View

Click here to load this message in the networking platform