CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Location
    New York, USA
    Posts
    169

    Exclamation Microsoft Jet Database Engine error

    Has anybody seen the error below?

    I'm working on a login screen with VB.NET Web Application. I need to get data from Test.mdb (an Access97 database located on the network) and check the login/password. Test.mdb is being used by another application also.

    Everytime, when the Web Form tries to fill a dataset (i.e. myDataAdapter.Fill(myDataSet, "tblLogin")), it just errors out with the error below.

    The Test.mdb is shared and "Everyone" has FULL CONTROL permission.

    What do I need to do to get rid of that error?

    Code:
     Server Error in '/Project1' Application.
    The Microsoft Jet database engine cannot open the file '\\Server1\C\Program Files\Test1\Test.mdb'. It is already opened exclusively by another user, or you need permission to view its data. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file '\\Server1\C\Program Files\Test1\Test.mdb'. It is already opened exclusively by another user, or you need permission to view its data.
    NOTE: I tried to link just the login/password table on the local machine (where the Web Application is), and it still returned the same error message.
    Last edited by enigmaos; June 17th, 2002 at 09:28 AM.

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477
    I had the same error when trying to create a linked server in SQL Server to a database file. The problem is that the webapplication is running in IIS, which is a service. This means that IIS is probably running under the credentials of the SYSTEM account.

    If you are using win2000 with a Active Directory, you will need to check the "trust this computer for delegation" checkbox in the "Active Directory users and computers" management tool.

    You will also need to give the computer account on which IIS is running rights to both the share as to the files it is accessing.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Aug 2001
    Location
    New York, USA
    Posts
    169
    I'm using Windows XP (where the application is built/compiled) and the Access database is on Windows NT 4.0

    What do I need to do?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured