Mahesh Bodepudi

Mahesh Bodepudi

  • NA
  • 90
  • 56.6k

Navigation shows an exception

Apr 21 2016 3:33 AM
Hi,
I have converted MVC2 application to MVC4 application.When I am navigating to a page
it is showing the below exception as it is worked in MVC2
 
"CS1061: 'object' does not contain a definition for 'Count' and no extension method 'Count' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
 In View Code
Line 241:    </p> 
Line 242:    <br /> 
Line 243:    <% if (Model.Count() > 0) 
Line 244:       { %> Line 245:    <h2>
Please help to fix it


 

Answers (1)