I am trying to deploy an ASP.NET MVC 4.0 application and I am using a generic web hosting solution. I can successfully deploy everything except my pre-existing databases, one for user accounts and one for messages.
These two databases are in the App_Data
directory of my application.
Each part of the application that requires a database connection returns the following:
Invalid value for 'attachdbfilename' key
I should note that this problem does NOT occur with local testing.
My hosting provider created a SQL Server database by providing me with the server IP address, username / database and password. However, I am not sure how I can access it and then replicate the current database in my application to the database on my web host.
Basically, my question is: how do I get SQL Server databases to work on my web hosting?
source share