简体   繁体   中英

C# Ado.net Entity Framework error?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM