How to connect MS-access database using C#.Net.??
I'm using code as follow:
Code:<add name="localhost" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=data\guestbook.mdb;Jet OLEDB:Database Password=data123;"/>
But I'm getting Error msg as follow:
"System.Security.SecurityException: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."


Reply With Quote

Bookmarks