Click here to Skip to main content
14,426,749 members
Rate this:
Please Sign up or sign in to vote.
See more:
i am trying to make connection between myadmindatabase and asp.net 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=123.12.123.123;port=3306;Integrated Security=true;Initial Catalog=databasename;User Id=myname;password=mypass;" providerName="MySql.Data.MySqlClient"/>
Posted
Updated 21-Jul-19 6:24am
v2
Comments
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

You're using db credentials (userid and password), so try setting integrated security to false and try again.
   
Comments
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100