Unable to start application to connect to Access database

  • Thread starter CM Manager via DotNetMonster.com
  • Start date
C

CM Manager via DotNetMonster.com

I am very frustrated due to this exception error I am receiving. I've tried
searching numerous user support groups, Microsoft Support Net, Google, etc.
and haven't found exactly my situation. Hopefully someone here can help.

I am just learning VB.NET and purchased the SAM's "Teach Yourself VB.NET
2003 in 21 days' book. I am trying to connect to an Access database I created
locally on my computer per Chapter 16. I originally had it on a network share
but have also tried accessing it on my C:\ drive. I've created an
OleDBConnection1 along with the OleDbDataAdapter1 and the DataSet11 per the
book's instructions. I dragged a data grid onto a blank form and in the
Properties window set its Datasource > DataSet11.Students which is the name
of my Access table (Students.mdb).

I am receiving an error message stating "An unhandled exception of type
'System.Security.SecurityException' occurred in DatabaseTests.exe

Additional information: Request failed" I've seen this probably has something
to do with my permissions which I can adjust in the Microsoft .NET Framework
Configuration utility, but I don't know what I'm looking for. Can someone
please assist with troubleshooting this issue? Let me know if you need any
additional information. Thank you!
 
P

Paul Clement

¤ I am very frustrated due to this exception error I am receiving. I've tried
¤ searching numerous user support groups, Microsoft Support Net, Google, etc.
¤ and haven't found exactly my situation. Hopefully someone here can help.
¤
¤ I am just learning VB.NET and purchased the SAM's "Teach Yourself VB.NET
¤ 2003 in 21 days' book. I am trying to connect to an Access database I created
¤ locally on my computer per Chapter 16. I originally had it on a network share
¤ but have also tried accessing it on my C:\ drive. I've created an
¤ OleDBConnection1 along with the OleDbDataAdapter1 and the DataSet11 per the
¤ book's instructions. I dragged a data grid onto a blank form and in the
¤ Properties window set its Datasource > DataSet11.Students which is the name
¤ of my Access table (Students.mdb).
¤
¤ I am receiving an error message stating "An unhandled exception of type
¤ 'System.Security.SecurityException' occurred in DatabaseTests.exe
¤
¤ Additional information: Request failed" I've seen this probably has something
¤ to do with my permissions which I can adjust in the Microsoft .NET Framework
¤ Configuration utility, but I don't know what I'm looking for. Can someone
¤ please assist with troubleshooting this issue? Let me know if you need any
¤ additional information. Thank you!

You don't mention ASP.NET but I will assume this is the type of project you are working with since
you posted in this newsgroup.

See the following MS KB article:

PRB: Cannot connect to Access database from ASP.NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;316675


Paul
~~~~
Microsoft MVP (Visual Basic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top