SOMEONE PLEASE HELP :)
I'm using arvixe as my web host. I've imported .csv files to their phpmyadmin. I've exported the .sql files. I've imported them to mysql workbench, and I've connected my web matrix 2 database to my localhost. I can see my tables in web matrix 2 that i've imported into the mysql workbench. When I try and publish it says
Unable to publish site because of missing database connection strings in Publish Settings.
In the .cshtml that uses the database I've used.
@{
var db = Database.Open ("dbname");
var op="SELECT * dbtablename";
}
I can get it to work locally, like when I hit the run button. But not when i publish it. In my web.config file I have this.
I've talked to arvixe and they are unable to help me because they said I need to talk to a developer, well I don't know any so if I can get any input, that would be greatly appreciated.
Thank you for taking the time to read this
↧