473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Unable to start application to connect to Access database

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!
Nov 19 '05 #1
2 1874
By default ASP.NET runs under the ASPNET account.
Make sure this user account has read/write permissions to the MDB file.

Alternately you could use impersonation to have ASP.NET run under a
different account that has the necessary permissions.
Here's more info on impersonation:
http://msdn.microsoft.com/library/de...ersonation.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CM Manager via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in
message news:52***********@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!

Nov 19 '05 #2
On Wed, 17 Aug 2005 19:36:46 GMT, "CM Manager via DotNetMonster.com" <fo***@DotNetMonster.com>
wrote:

¤ 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...b;en-us;316675
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: InProcess | last post by:
Let me start by saying that, yes we know v6.5 is no longer supported by Microsoft and that moving to SQL2000 might resolve our problem. Actually the migration to SQL2000 is 1 to 2 months out and in...
6
by: Franco Lombardo | last post by:
Hi all, I'm running DB2 8.1.5 on Windows 2000 professional SP4. When I try to start Control Center, I see the splash screen for a while, then it closes and nothing else happens. It happens...
1
by: Brian Pittman | last post by:
Hi all, As the subject says I'm having trouble connecting to SQL Server 2K via Visual Studio.NET 2002 (VB). It tells me that SQL Server does not exist or access is denied. I know that the...
1
by: Reza Sadeghi | last post by:
Hi I am getting this error when I tried to browse any asp.net in visual studio.net. I can build the project but when I try to run and debug the project I get error message that "Unable to start...
2
by: jamezw | last post by:
Hello I work on a website where we have 3 servers running one site so we use the SQLServer option for state management. We are using the persistent ASPState database. All 3 of our webservers are...
10
by: amirmira | last post by:
I have a Windows Service developed in VB.NET that attempts to connect to a database as soon as the service starts. I have no problem when I start the service manually - but when I restart the...
0
by: vicky | last post by:
Hello Experts, Trying to run sample Postgrel's ECPG(Embedded SQL)programs on RHL 9.0. Im unable to connect to PostgreSQL database (sirishadb) when I run the program .... # su postgres...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
3
by: Harmony504 | last post by:
HELP! Setup: PHP5.2.5, IIS 5.1, XP, AS/400 (DB/400 or DB2) I am trying to connect to a DB2 database from my computer. I installed DB2 Connect and set up the ODBC Driver in the Data Source...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.