I uploaded my site on godaddy shared host. I can access this database from my management studio. I can\'t access this database from my site
I originally was calling the connection string value as shown below (VB.NET) and got the error being mentioned
Using connection As New SqlConnection("connectionStringName")
'// more code would go here...
End Using
adding a reference to System.Configuration and updating my code as shown below was my solution. The connection string was not the problem since others controls used it without any issues (SqlDataSource)
Using connection As New SqlConnection(ConfigurationManager.ConnectionStrings("connectionStringName").ConnectionString)
'// more code would go here...
End Using