[Mono-bugs] [Bug 508570] New: Generic MVC ViewMasterPage does not respect type
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun May 31 06:09:52 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=508570
Summary: Generic MVC ViewMasterPage does not respect type
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: i386
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: morten at wtf.dk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
I am using latest mono from trunk, together with Microsofts System.Web.Mvc
assembly.
On my MVC site, I am using a generic ViewMasterPage:
<%@ Master Language="C#"
Inherits="System.Web.Mvc.ViewMasterPage<MySite.Models.MyCustomViewData>" %>
I use some of the properties on this type inside the master page, e.g.:
<title><%=Model.Title %></title>
In my controller I make sure to pass this type on to every page.
However, I receive the following error:
CS1061: Type `object' does not contain a definition for `Title' and no
extension method `Title' of type `object' could be found (are you missing a
using directive or an assembly reference?)
Description: HTTP 500. Error processing request.
Stack Trace:
System.Web.Compilation.CompilationException: CS1061: Type `object' does not
contain a definition for `Title' and no extension method `Title' of type
`object' could be found (are you missing a using directive or an assembly
reference?)
at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters
options) [0x0023c] in
/home/mbp/monotest/trunk/mono-135093/mcs/class/System.Web/System.Web.Compilation/AssemblyBuilder.cs:818
at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x00000] in
/home/mbp/monotest/trunk/mono-135093/mcs/class/System.Web/System.Web.Compilation/AssemblyBuilder.cs:730
at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp,
Boolean debug) [0x0023a] in
/home/mbp/monotest/trunk/mono-135093/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:534
at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp,
Boolean debug) [0x0011c] in
/home/mbp/monotest/trunk/mono-135093/mcs/class/System.Web/System.Web.Compilation/BuildManager.cs:331
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list