It should be possible to use generics here and pass the class-type of the Model. However this is not accepted by Visual Studio 2008:

```
<%@ Page Inherits="System.Web.Mvc.ViewPage(of IEnumerable(of MyNamespace.MyClass))" %>

```

I get the following validation-error (underlined in VS): `'Context' is not a member of 'ASP._views___home___index__asp'`

I get the following runtime error: `BC30456: 'InitializeCulture' is not a member of 'ASP._views___home___index__asp'.`

Note, I am using Visual Basic.NET - but that shouldn't impact the issue.

Here are some screenshots of the views & controllers, I hope somebody sees what's going on (TestClass is a simple class with ID and Name property): 

* [View](http://img13.imageshack.us/img13/6315/viewq.jpg) (list, model = IEnumerable)
* [View](http://img23.imageshack.us/img23/5479/viewindex.jpg) (index, no model)
* [Controller](http://img13.imageshack.us/img13/9941/controllerl.jpg)
* [Resulting page at runtime](http://img27.imageshack.us/img27/4651/runtime.jpg) (list: error)
* [Resulting page at runtime](http://img26.imageshack.us/img26/2261/runtimeindex.jpg) (index: works)

The solution, as per [Maik Koster](https://stackoverflow.com/users/108919/maik-koster) [answer](https://stackoverflow.com/a/897497/53236) below, is:

1. Re-referencing System.Web.Mvc (had it in GAC, went back to local-copy)
2. Re-created view from Controller. Right-click controller action -> Create view... and modify from there

Now the views in an ASP.NET MVC project the page directive has an inherits attribute as follows:

```
<%@ Page Inherits="System.Web.Mvc.ViewPage" %>

```