geekpgh / mastersproject

The masters project for SWENG 500 team 3
4 stars 2 forks source link

Error When Viewing Recipe List #46

Closed geekpgh closed 11 years ago

geekpgh commented 11 years ago

I think we might have a bug for this, but I cannot find it. Everytime I click the "Recipes" link I get an error.

Is there a migration that wasn't checked in? I tried running Update-Database and it did not fix it.

I think others were seeing this issue before too. Is there a known fix?

Server Error in '/' Application. Invalid column name 'OwnerId'. Invalid column name 'OwnerId'. Invalid column name 'HowtoMakeit'. Invalid column name 'Ingredient_IngredientId'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Invalid column name 'OwnerId'. Invalid column name 'OwnerId'. Invalid column name 'HowtoMakeit'. Invalid column name 'Ingredient_IngredientId'.

Source Error:

Line 30: select Recipe; Line 31: Line 32: return View(owndedRecipes.ToList()); Line 33: } Line 34:

geekpgh commented 11 years ago

This error happens on the deployed azure version of the application as well. We need to fix this or recipes won't be usable at all.

gmblogref commented 11 years ago

I have checked in a fix for a new migration. Steve is looking into fixing this on the deployed

geekpgh commented 11 years ago

@steveplatz and @gmblogref fixed this issue.