I create a project to display a list of student on Database (the current.net framework version is 4.6.1). The wizard ask me to add database to the project and I accept it.
When I build the project on Debug mode, everything works fine on Windows 10.
I copy the debug folder to windows 7 and try to run the project, it shows me the error message.
System.Data.EntityException: The underlying provider failed on Open.
I try to install the .net framework 4.6.1 for windows 7 but it didn't work. This is the list of installed programs on windows 7:
The list of installed programs on windows 10:
I really don't know why my project didn't work on windows 7, are there some missing files or frameworks?
Thanks for your reading :D
"...LocalDB is a feature of SQL Server Express targeted to developers." You can use LocalDB on your development machine, but don't expect it to be working on other machine. I can't tell you an exact solution as it depends on what you are allowed to do. Moving to a "real" database maybe.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.