I created an Asp.NET MVC 3 web application. However, when I try to deploy it I get this error.
'ModelType' is not declared. It may be inaccessible due to its protection level.
on the second line of the code where I declare my model type. It works great locally where MVC 3 is installed but not on the server where it isn't. I've included all the dll's that it normally requires to run without the installation. Also this code works fine on another server where MVC 3 isn't installed so I'm not sure what the problem is.
here is the beginning of the code:
@Imports System.Data.SqlClient
@ModelType SqlDataReader
@Code
Layout = Nothing
End Code
it fails on the second line