I created a MS SQL database and got the provider name and the connectionstring from godaddy to input into my webconfig.
then i did what you said to do with the controller (basically name it the same as my db context into my webconfig file)
is there anything else that could be making the problem?..Like i said i ran this already on my localhost with Code First and it ran perfectly b ut trying to get this into production its not working everytime it saysing that it has encountered a error.
But i did notice something different..the timeout was alot faster this time around rather then when i had nothing so im thinknig its created and connected but im not sure if I actually have to build the database first or if the code first still builds it
repeater09
Member
12 Points
20 Posts
Re: How to connect a Code First Model Database to a GoDaddy remote Database?
Apr 29, 2012 09:39 PM|LINK
I still cant get the stupid thing to work.
I created a MS SQL database and got the provider name and the connectionstring from godaddy to input into my webconfig.
then i did what you said to do with the controller (basically name it the same as my db context into my webconfig file)
is there anything else that could be making the problem?..Like i said i ran this already on my localhost with Code First and it ran perfectly b ut trying to get this into production its not working everytime it saysing that it has encountered a error.
But i did notice something different..the timeout was alot faster this time around rather then when i had nothing so im thinknig its created and connected but im not sure if I actually have to build the database first or if the code first still builds it