Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sir i have a hosting plan in godaddy. When i am trying to host with a data base. Its showing connection string error. While the website is working in my local host. But not working in web hosting Can anyone give the detailed information regarding connection string in web hosting.
Posted

provide valid information here..
C#
<connectionstrings>
  <add name="connStr" connectionstring="Data Source=[Your Data Source ID];Initial Catalog=[Database Name];Persist Security Info=True;User ID=[User Id];Password=[Password]" providername="System.Data.EntityClient" />
</connectionstrings>


see this links..
https://support.godaddy.com/help/article/5445/what-is-a-web-config-file?countrysite=in[^]
http://codes.codedigest.com/FAQ/1-How-to-execute-Microsoft-Enterprise-application-Block-2-0-in-Medium-trust-environment-.aspx[^]
 
Share this answer
 
You may contact your hosting provider about the correct connection string. Please check jmot response above:

XML
<connectionstrings>
    <add name="connStr" connectionstring="Data Source=[Your Data Source ID];Initial Catalog=[Database Name];Persist Security Info=True;User ID=[User Id];Password=[Password]" providername="System.Data.EntityClient" />
  </connectionstrings>
 
Share this answer
 

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