'c# Cannot open Database - Windows 10 Access 2016
I make a c# form that read and write data to a Microsoft Access Database. It worked when i had windows 8.1 with access 2013. Then i had install windows 10 with access 2016 and the same program return this error: Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt. The file isn't corrupt (i can open it with access). The file is small then 2GB (500 KB). How can I solve?
Solution 1:[1]
Try installing the Access 2013 runtime.
From Microsoft:
The Microsoft Access 2013 Runtime enables you to distribute Access 2013 applications to users who do not have the full version of Access 2013 installed on their computers.
This should install the appropriate OLEDB drivers for you that you used to have on your old OS.
Solution 2:[2]
Tween interpolates between two values. It is a generic type; if you don't explicitly specify the type parameter, it will be inferred from the construction arguments. Since you used Tween(begin: 0, end: 1), so the concrete type is inferred to be Tween<int> from the 0 and 1 integer literals. You can't interpolate between 0 and 1 using ints, so you either must use double literals so that the type is inferred to be Tween<double>:
Tween(begin: 0.0, end: 0.0)
or explicitly request a Tween<double>:
Tween<double>(begin: 0, end: 0)
Solution 3:[3]
In case of int you should use IntTween, not regular Tween.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sturgus |
| Solution 2 | jamesdlin |
| Solution 3 | Vit Amin |
