hi, i installed mvc 1.1, opened an mvc project with dynamic data, converted it from 3.5 sp1 to 4.0, made the changes suggested in the release notes, and update the version number od the dynamic data from 3.5 to 4.0 that has not been updated automatically.
i try to run the application, that worked fine with 3.5 sp1 : the first row of the index.aspx in the home controller contains
<%
@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IndexData>" %>
but if i run the program i receive the error
[InvalidOperationException: The view at '~/Views/Home/Index.aspx' must derive from ViewPage, ViewPage<TViewData>, ViewUserControl, or ViewUserControl<TViewData>.]
System.Web.Mvc.WebFormView.Render(ViewContext viewContext, TextWriter writer) +531
before this i had to change all the reference like
<%= Html.Encode(Model.UltimaSpesa)%>
to
<%
= Html.Encode((Model as IndexData).UltimaSpesa)%>
because seems that Model has not be handled as IndexData type, but now i have this problem.
i'm missing something?
best regards,
luca morelli