" abcEntities" connectionString= " metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=MySql.Data.MySqlClient;provider connection string=data Sourcer=123.12.123.123;User Id=myusername;password=mypass;database=mydatase" ;MultipleActiveResultSets=True " SslMode = none" providerName= " System.Data.EntityClient" /> What I have tried:
I am getting the error <pre>Keyword not supported:
At first i am getting Keyword not supported: 'user id'. If i remove user id from my string i am getting Keword not supported:'password'...........continue. If that is the actual code, I'm not surprised you're getting errors. You seem to have mismatched quotes and words in that string that are spelled wrong or possibly multiple lines of code mashed together.
"data Sourcer"? What is that?
An add line in the web.config should have three attributes, name, connectionString, and providerName. You've got all three, but because of mismatched quotes and misspellings in the connectionString part, the parsing is failing. Take a look at what you've got:
name= " abcEntities" connectionString= " metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=MySql.Data.MySqlClient;provider connection string=data Sourcer=123.12.123.123;User Id=myusername;password=mypass;database=mydatase" ;MultipleActiveResultSets=True " SslMode = none" providerName= " System.Data.EntityClient" /> You should provide more information like which environment you're using VS 2015 MS SQL/ MY SQL etc.
Here is a working connection string with MS SQL Server
<add name="bookStoreDBEntities" connectionstring="metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;
provider=System.Data.SqlClient;provider connection string="
data source=localhost;
initial catalog=BookStoreDB;
persist security info=True;
user id=sa;
password=P@ssC0de$44;
multipleactiveresultsets=True;
application name=EntityFramework"" providername="System.Data.EntityClient"> See MySQL Connector/Net Connection Strings - ConnectionStrings.com [ ^ ] or MySQL :: MySQL Connector/NET Developer Guide :: 5.1.1 Creating a Connector/NET Connection String [ ^ ].
Checking the documentation is always the first thing you should do.
  • Read the question carefully.
  • Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  • If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  • Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
  •