The provider fails on open if you use Entity Framework6 and link to MS SqlServer, whereas The local test is ok. If you use IP access, The provider fails on open. If you look it up on The Internet, someone says that The connection string is wrong, whereas The connection string is wrong, why do I successfully update The database with add-Migration and update-database commands?Why I used localhost under IIS Express, so I continued searching and found something written by a foreigner
Url here, children’s shoes are interested can go to http://th2tran.blogspot.com/2009/06/underlying-provider-failed-on-open.html
Patriotic?Don’t like reading foreign languages?Okay, I’m going to hell.
The author generally mean, he also met this problem, so to get back and forth, back and forth finally found that the EF in the operation of the database to repeatedly links, disconnect the database, if the connection string is a Windows SERVICE, rather than using a user name and password, then try to access the database user is NT AUTHORITY \ NETWORK SERVICE, this fellow permission is not big enough to cause the login failed. At the end of the story, the author tries to add that account to SQL Server and gives permission, and that’s it.
I am lazy to do the problem of new account, so, directly change to use user name and password, test again, OK.
Meow, it’s really a matter of concatenating strings.
Url here, children’s shoes are interested can go to http://th2tran.blogspot.com/2009/06/underlying-provider-failed-on-open.html
Patriotic?Don’t like reading foreign languages?Okay, I’m going to hell.
The author generally mean, he also met this problem, so to get back and forth, back and forth finally found that the EF in the operation of the database to repeatedly links, disconnect the database, if the connection string is a Windows SERVICE, rather than using a user name and password, then try to access the database user is NT AUTHORITY \ NETWORK SERVICE, this fellow permission is not big enough to cause the login failed. At the end of the story, the author tries to add that account to SQL Server and gives permission, and that’s it.
I am lazy to do the problem of new account, so, directly change to use user name and password, test again, OK.
Meow, it’s really a matter of concatenating strings.
Read More:
- Problem solving: importerror: libcublas.so .9.0: cannot open shared object file: No such file
- SQL Server “login failed for user ‘domain account”. [sqlstate 28000] (error 18456). “Problem solving
- Open the top left corner of the chrome page to display the volume and playback chrome.exe Problem solving
- “Failed to load session” Ubuntu “problem solving summary
- Solve CONDA’s “solving environment: failed” problem
- mysql problem solving: mysqladmin: connect to server at’localhost’ failed
- Common mistakes in WCF distributed development (15): Communication with the underlying transaction manager has failed.
- Solving environment: failed solution to the problem encountered when updating Anaconda
- Failed to load resource: net::ERR_ INSECURE_ Response problem solving record
- Problem solving of failed to read candidate component class in Java
- VirtualBox problem solving set -[drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message
- Failed to connect to 127.0.0.1 port 43571: problem solving record
- [DRC nstd-1] problem solving of vivado error problem
- Problem solving: PDF cannot be opened, and acrobat failed to connect to a DDE server appears
- Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)
- Online problem solving analysis
- Internalerror: blas GEMM launch failed: A. shape = (100, 784), B. shape = (784, 10), M = 100, n = 10… Problem solving
- Win10 system [createfile() error: 5] problem solving
- About the problem I encountered: 226 transfer done but failed to open directory
- Duplicate class com.xxx.xxx Find in modules problem solving (Aidl interdependence problem)