Is it possible to connect to Sql Azure with Entity Framework “Code First” ctp 5?
I keep getting a:
“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.”
..message.
I know my connection string is correct because I can connect to the database with server explorer in Visual Studio.
I tried connecting to an existing database and creating a database first, both return the same message.
Also, everything works if I use a local database (sqlexpress).
I was passing the name of the connection string into the constructor instead of the connection string name. If you do this, I think it automatically creates a new sqlExpress connection. This may be because I placed the connection strings in the web.debug.config and web.live.config and it couldn’t resolve them.