I had a functioning ASP.NET MVC 1.0 Project with strongly typed views. They no longer function after upgrading to ASP.NET MVC 2.0 Preview 2.
The Model
property now is an Object
instead of the requested type.
I have this:
<%@ Language="C#"
Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<TechHelp.Core.Models.Ticket>>" %>
I get
CS1579: foreach statement cannot operate on variables of type 'object' because 'object' does not contain a public definition for 'GetEnumerator'
Edit does anyone have any idea why this wouldn't be working?