Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
<add 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" />


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.
Posted
Updated 23-May-20 18:24pm

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:
<add
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" />
 
Share this answer
 
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">
 
Share this answer
 
 
Share this answer
 
update Server to lowercase server
 
Share this answer
 
Comments
CHill60 26-May-20 6:53am    
That word doesn't even exist in the original post, capitalised or otherwise

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900