Can't get access to a Microsoft Access data base from a bind control in Web Form

Discussion in 'ASP .Net Web Controls' started by Hans Östlund, Feb 5, 2004.

  1. I use the vb.net. When I try to bind a control (any) in a Web Form, I always
    get the following error message:

    [OleDbException (0x80004005): Det går inte att öppna filen
    'C:\Inetpub\wwwroot\retbas.mdb'.Den är antingen låst av annan användare
    eller måste du ha behörighet att läsa den.]Translated into english it would
    be something like: "Impossible to open the file
    'C:\Inetpub\wwwroot\retbas.mdb'.It is locked by another user or you must
    have the authority to read it.I'm following the Microsoft example
    at:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/ht
    ml/vbtskdatabindingmulti-recordcontrols.asp- I am the administrator- There
    is no password for the database- Everything work well in Windows
    FormsPlease, I would be greatful if you can help me!
    Hans Östlund, Feb 5, 2004
    #1
    1. Advertising

  2. Right click on your .mdb file and in your security tab give it full
    read/write privileges.

    Another possible reason is because you have this file open in access, close
    it and try again.

    "Hans Östlund" <> wrote in message
    news:eek:xoUb.47951$...
    > I use the vb.net. When I try to bind a control (any) in a Web Form, I

    always
    > get the following error message:
    >
    > [OleDbException (0x80004005): Det går inte att öppna filen
    > 'C:\Inetpub\wwwroot\retbas.mdb'.Den är antingen låst av annan användare
    > eller måste du ha behörighet att läsa den.]Translated into english it

    would
    > be something like: "Impossible to open the file
    > 'C:\Inetpub\wwwroot\retbas.mdb'.It is locked by another user or you must
    > have the authority to read it.I'm following the Microsoft example
    >

    at:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/ht
    > ml/vbtskdatabindingmulti-recordcontrols.asp- I am the administrator- There
    > is no password for the database- Everything work well in Windows
    > FormsPlease, I would be greatful if you can help me!
    >
    >
    Alessandro Zifiglio, Feb 5, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman
    Replies:
    1
    Views:
    1,341
    smith
    Dec 8, 2004
  2. SpamProof
    Replies:
    0
    Views:
    547
    SpamProof
    Oct 21, 2003
  3. =?Utf-8?B?ZGF2aWQ=?=
    Replies:
    1
    Views:
    3,737
    Ken Cox [Microsoft MVP]
    Apr 19, 2005
  4. ruca
    Replies:
    2
    Views:
    374
    Paul Clement
    Jul 19, 2005
  5. mr2_93
    Replies:
    1
    Views:
    3,593
    mr2_93
    Oct 2, 2005
Loading...

Share This Page