Click here to Skip to main content
15,901,373 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am trying to make connection between myadmindatabase and mvc project which are deployed in godaddy server but it is giving error:Error.An error occurred while processing your request.When i run it in visual studio everything work fine having different connectionstring.please help.

What I have tried:

<add name="xyzEntities" connectionString="Data Source=;port=3306;Integrated Security=true;Initial Catalog=databasename;User Id=myname;password=mypass;" providerName="MySql.Data.MySqlClient"/>
Updated 21-Jul-19 5:24am
Nelek 21-Jul-19 6:13am    
I hope the data shown are not the real ones
Vivek Kansal 21-Jul-19 6:58am    
is their any proplem in connectionstring??

1 solution

You're using db credentials (userid and password), so try setting integrated security to false and try again.
Share this answer
Vivek Kansal 25-Jul-19 10:54am    
No sir its not working but thank you for your reply.

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