Click here to Skip to main content
16,021,449 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Please help me i am facing this problem:


Server Error in '/' Application.
--------------------------------------------------------------------------------

The Microsoft Jet database engine cannot open the file 'C:\sntinewhomepage\data\SNTI.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 'C:\sntinewhomepage\data\SNTI.mdb'. It is already opened exclusively by another user, or you need permission to view its data.

Source Error:


Line 45: Dim bix As String
Line 46: Dim dr1 As OleDbDataReader
Line 47: con1.Open() \\error occurs here\\
Line 48: cmd1 = New OleDbCommand("select max(sno)+1 from Feedback", con1)
Line 49:
Posted
Updated 14-Feb-12 0:14am
v2
Comments
Varun Sareen 14-Feb-12 6:35am    
The connection may be already opened and not closed.
Himachandra 14-Feb-12 6:36am    
Post your sample code....

I think you have opened the access database manually then tried to connect the same database

Hope this helps if yes then accept and vote the answer
--Rahul D.
 
Share this answer
 
This can be due to a no. of raesons
1=>
Check you run your project while database file is open.
Close Access file and then run.
2=>
It is used by another Process.
Open Task Manager and check if any or current application(that used same database) running and you tried to run again.
Kill that process and then runs..
Hope It Solves your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900