I have been working through various tutorials and their links to instructions, to make and deploy code first web applications with databases.
The tutorial I followed for the application was the Movie tutorial. I used this tutorial for my own purposes (I have kept it simple at the moment) and I have the application working.
I came to trying to deploy (I use 1 click) and the first time I tried it failed as I hadn't configued the database side of things at all. So I followed a lot of instructions and I eventually got the site to deploy.
The first time I did this I checked the target server for the database (which is different to the application) and I couldn't see the database. The result was that when I went on to the application the site had caught the error on the sites general error.aspx
that the MVC framework produces as standard.
I looked at little further on the SQL server and noticed it had added the database in the system databases, so I deleted them from here and created a new database called "Outages".
I then changed the various bits of code to reflect this and deployed again, this time the tables were created as expected, however the site still was not working from the live server.
I'm not sure where I am going wrong or how I can trace the error as it is just getting caught on the standard error page.
All the account pages work fine it is just the data related pages that produce the error.
mcinnes01
Member
16 Points
121 Posts
Help deploying code first website with database
May 03, 2012 01:19 PM|LINK
Hi,
I have been working through various tutorials and their links to instructions, to make and deploy code first web applications with databases.
The tutorial I followed for the application was the Movie tutorial. I used this tutorial for my own purposes (I have kept it simple at the moment) and I have the application working.
I came to trying to deploy (I use 1 click) and the first time I tried it failed as I hadn't configued the database side of things at all. So I followed a lot of instructions and I eventually got the site to deploy.
The first time I did this I checked the target server for the database (which is different to the application) and I couldn't see the database. The result was that when I went on to the application the site had caught the error on the sites general error.aspx that the MVC framework produces as standard.
I looked at little further on the SQL server and noticed it had added the database in the system databases, so I deleted them from here and created a new database called "Outages".
I then changed the various bits of code to reflect this and deployed again, this time the tables were created as expected, however the site still was not working from the live server.
I'm not sure where I am going wrong or how I can trace the error as it is just getting caught on the standard error page.
All the account pages work fine it is just the data related pages that produce the error.
Any help will be much appreciated.
Andy