Re: Unable to start application to connect to Access database
- From: "Steve C. Orr [MVP, MCSD]" <Steve@xxxxxxx>
- Date: Wed, 17 Aug 2005 14:11:15 -0700
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/default.asp?url=/library/en-us/cpguide/html/cpconaspnetimpersonation.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CM Manager via DotNetMonster.com" <forum@xxxxxxxxxxxxxxxxx> wrote in
message news:52FDD36052A58@xxxxxxxxxxxxxxxxxxxx
>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!
.
- References:
- Unable to start application to connect to Access database
- From: CM Manager via DotNetMonster.com
- Unable to start application to connect to Access database
- Prev by Date: customErrors remoteOnly to intranet machine?
- Next by Date: Exception Details: System.UnauthorizedAccessException
- Previous by thread: Unable to start application to connect to Access database
- Next by thread: Re: Unable to start application to connect to Access database
- Index(es):
Relevant Pages
|