[Mono-bugs] [Bug 523341] New: ASP.NET View don't accept array generic parameters
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Jul 19 04:38:52 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=523341
Summary: ASP.NET View don't accept array generic parameters
Classification: Mono
Product: Mono: Compilers
Version: unspecified
Platform: i686
OS/Version: Windows 7
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: matthias at hryniszak.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=305984)
--> (http://bugzilla.novell.com/attachment.cgi?id=305984)
Project displaying the problem
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.1.1)
Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)
The following Inherits page directive causes compiler error:
Inherits="System.Web.Mvc.ViewPage<System.Globalization.CultureInfo[]>"
Reproducible: Always
Steps to Reproduce:
1. Open the attached project.
2. Click on "Cultures" tab next to "About"
Actual Results:
Server Error in '/' Application
CS1031: Type expected
Description: HTTP 500. Error processing request.
Stack Trace:
System.Web.Compilation.CompilationException: CS1031: Type expected
at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters
options) [0x00000]
at System.Web.Compilation.AssemblyBuilder.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.GenerateAssembly
(System.Web.Compilation.AssemblyBuilder abuilder,
System.Collections.Generic.List`1 buildItems, System.Web.VirtualPath
virtualPath, BuildKind buildKind) [0x00000]
at System.Web.Compilation.BuildManager.BuildAssembly (System.Web.VirtualPath
virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.GetCompiledType (System.String
virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath
(System.String virtualPath, System.Type requiredBaseType) [0x00000]
at
System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.CreateInstanceFromVirtualPath
(System.String virtualPath, System.Type requiredBaseType) [0x00000]
at System.Web.Mvc.WebFormViewEngine.FileExists
(System.Web.Mvc.ControllerContext controllerContext, System.String virtualPath)
[0x00000]
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433
Expected Results:
A table displaying a list of cultures
There's a workaround for this. Just change the type in Cultures.aspx to be
List<System.Globalization.CultureInfo> instead and in the
HomeController.Cultures() method change the line returning View to
return
View(CultureInfo.GetCultures(CultureTypes.AllCultures).OrderBy(x=>x.DisplayName).ToList<CultureInfo>());
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list