Re: Unable to start application to connect to Access database



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!


.



Relevant Pages

  • Re: VS.NET 2005 and the "allowDefinition=MachineToApplication" error
    ... Your description of impersonation is great. ... If you want to use the default configured account, eliminate that entry, or configure it as: ... The easiest way to assign correct permissions to all required directories is to run: ... I re-started IIS and tried to access my ASPX page again -- same ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: security exception within Microsoft Application Block ExceptionManager.vb
    ... If you set impersonation = true that you were impersonating IUSR account (If ... ASPNET account doesn't have permission to create EventLog's, ... Least privileged accounts have sufficient permissions to be able to write ... not have sufficient permissions to create new event sources. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Exchange 2003 full mailbox permissions
    ... "Using KB article 821897 "How to Assign Service Account Access to All ... to give my user account every available permission (i.e. all except ... "Special Permissions", which is greyed out) on the mailbox store ...
    (microsoft.public.exchange.admin)
  • Re: How to view all files/folders denied to a particular User?
    ... account called Visitor, ... tightly defined access permissions is precisely what I was doing. ... This account has access to most files and folders, ... a user account and get a list of files denied. ...
    (microsoft.public.windowsxp.general)
  • Re: Windows Service Account
    ... you can use the find IIDentity to the user to give folder permissions ... The OP does not need to find which user account is running the Windows ... Local System account has mighty ...
    (microsoft.public.dotnet.general)