H2 Database WIth .NET Application
I have created .NET APP that is s开发者_Go百科upposed queries the H2 DB but at the time of "DriverManager.getConnection(DBUrl, DBUName, DBPassword);" it gives the following error:
Error : IO Exception: "java.io.FileNotFoundException: Access to the path 'C:\Windows\System32\config\systemprofile\test.lock.db' is denied."; "C:\Windows\System32\config\systemprofile\test.lock.db
I have accessed the H2 DB throught its console its working fine but when i try to connect it with .NET App it gives above error.
Edited: http://www.h2database.com/html/advanced.html#microsoft_dot_net
I'm using this approach to query H2 database.
Try to delete test.lock.db file
精彩评论