When executing EF operation,
no connection string named ‘testentities’ could be found in the application config file error
solution:
it is necessary to add configuration in app.config of the application
1 <connectionStrings>
2 <add name="TestEntities"
3 connectionString="metadata=res://*/TestData.csdl|res://*/TestData.ssdl|res://*/TestData.msl;
4 provider=MySql.Data.MySqlClient;provider connection string="
5 server=localhost;user id=root;
6 password=admin;persistsecurityinfo=True;database=test""
7 providerName="System.Data.EntityClient" />
8 </connectionStrings>
Similar Posts:
- [Solved] for user ‘root’ using method ‘mysql_native_password’ failed with message: Reading from the stream has failed
- Trouble Connecting to sql server Login failed. “The login is from an untrusted domain and cannot be used with Windows authentication”
- [Solved] MYSQL Error: this authentication plugin is not supported
- [Solved] ER_NOT_SUPPORTED_AUTH_Mode node connection database error
- [Solved] Mybatis-config Error: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: failed to parse the connection string near ‘;useUnicode=true&
- Solution to the exception of failed to start component
- Error occurred when using java to connect mongodb: command failed with error 18 (authentication failed): “authentication failed.”
- [Solved] SQLyog Connect MYSQL Error: 2058 plugin caching_sha2_password could not be loaded
- Error in connecting to MySQL via Navicat on MAC
- Solutions to database connection problems: “connections could not be acquired from the underlying database!”