0

in my application i have a view where i giving ViewModel Name that time it's giving an error on console as: MyViewName does not inherit from 'System.Web.WebPages.WebPage'

i'm giving ViewModelName as

 @using Glass.Mapper.Sc.Web.Mvc;
 @using DncMvc5.ViewModels.Venues
 @inherits GlassView<GetVenuesViewModel>

here i'm not able to bind my ViewModel data collection to view. can anyone help me to figure out this issue

Amit Sharma
  • 1,088
  • 1
  • 19
  • 44

1 Answers1

0

Please check you assembly binding redirects and ensure that you have the correct Glass MVC version for your solution. This normally solves the problem.

Michael Edwards
  • 6,308
  • 6
  • 44
  • 75