Last post Aug 27, 2019 05:36 PM by bootzilla
Aug 27, 2019 05:12 PM|bootzilla|LINK
I renamed a view model from EditCategoriesViewModel to CreateEditCategoriesViewModel and when I build the solution I am getting this error:
The type or name ‘EditCategoriesViewModel’ does not exist in the namespace ‘Web.Areas.Admin.Models.Category’ (are you missing an assembly reference?)’.
This error is in the CreateCategory.g.cshtml file. I tired going into this file and renaming it to the updated ViewModel name but that doesn't work on recompile I get the same error. What can i do to get rid of this error.
Aug 27, 2019 05:36 PM|bootzilla|LINK
I figured this out. There was a view that was using the old ViewModel name. Updated to new View Model and it worked.