[Mono-bugs] [Bug 603060] New: mvc test template created with VS2k10 (official) fails on login page
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed May 5 19:00:11 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=603060
http://bugzilla.novell.com/show_bug.cgi?id=603060#c0
Summary: mvc test template created with VS2k10 (official) fails
on login page
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86-64
OS/Version: openSUSE 11.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: mhabersack at novell.com
ReportedBy: mchristensen at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: Component Test
Blocker: ---
Windows Vista 64
VS2k10 officially released version
openSUSE 11.2 x86_64
mono-core-2.6.4-38.2.x86_64
I have two mvc template app rpms, one that works and one that fails. The one
that works was created with an older version of Microsoft's Visual Studio while
the one that fails was created with the official VS2k10.
To create the app:
1) Install MVC from the scratch area if using VS2k8
2) Restart Visual Studio
3) Create a default MVC project by click "File / New Project / Visual C# / Web
/ ASP.NET MVC Web Application"
Make sure that you select .NET Framework 3.5 from the dropdown list at the top
of the New Project dialog or the ASP.NET MVC Web Application project template
won’t appear.
4) Click "Ok" on New Project dialog
5) Check "No" to creating a unit test project on "Create Unit Test Project"
dialog
6) Click "OK" on "Create Unit Test Project" dialog
7) Click View / Properties Window
8) Open the "References" list in the solution explorer
9) Click on "System.Web.Mvc"
10) In the properties window, change "Copy Local" to "True"
The one that works is in the the mono community repo and the other one, I
created using MonoTools for Visual Studio 2.0. I'll attach both of them to
this bug.
mvc-template-test-0.1-2.1.noarch.rpm (working)
mvcapplication1-1.0-20100505.160947.noarch.rpm (broken)
Working app URL: http://<your_server>/mvcTest
Broken app URL: http://<your_server>/mvc
You can install the application RPMs on openSUSE 11.2 and then restart apache.
When you start up the application, click on the "Log On" button in the upper
right. At this point, you'll see this error from the broken server:
=================================
Server Error in '/' Application
The property MvcApplication1.Models.LogOnModel.UserName could not be found.
Description: HTTP 500. Error processing request.
Stack Trace:
System.ArgumentException: The property
MvcApplication1.Models.LogOnModel.UserName could not be found.
at System.Web.Mvc.AssociatedMetadataProvider.GetMetadataForProperty
(System.Func`1 modelAccessor, System.Type containerType, System.String
propertyName) [0x00000] in <filename unknown>:0
at System.Web.Mvc.ModelMetadata.GetMetadataFromProvider (System.Func`1
modelAccessor, System.Type modelType, System.String propertyName, System.Type
containerType) [0x00000] in <filename unknown>:0
at System.Web.Mvc.ModelMetadata.FromLambdaExpression[LogOnModel,String]
(System.Linq.Expressions.Expression`1 expression,
System.Web.Mvc.ViewDataDictionary`1 viewData) [0x00000] in <filename unknown>:0
at System.Web.Mvc.Html.LabelExtensions.LabelFor[LogOnModel,String]
(System.Web.Mvc.HtmlHelper`1 html, System.Linq.Expressions.Expression`1
expression) [0x00000] in <filename unknown>:0
at ASP.views_account_logon_aspx.__RenderloginContent
(System.Web.UI.HtmlTextWriter __w, System.Web.UI.Control parameterContainer)
[0x00066] in Views\Account\LogOn.aspx:20
at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer)
[0x0000b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1133
at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer)
[0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1122
at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer)
[0x0005f] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1318
at ASP.views_shared_site_master.__Render__control1
(System.Web.UI.HtmlTextWriter __w, System.Web.UI.Control parameterContainer)
[0x00097] in <filename unknown>:0
at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer)
[0x0000b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1133
at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer)
[0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1122
at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer)
[0x0005f] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1318
at System.Web.UI.Control.RenderChildren (System.Web.UI.HtmlTextWriter writer)
[0x0006a] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1152
at System.Web.UI.Control.Render (System.Web.UI.HtmlTextWriter writer)
[0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1122
at System.Web.UI.Page.Render (System.Web.UI.HtmlTextWriter writer) [0x00172]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Page.cs:1149
at System.Web.Mvc.ViewPage.Render (System.Web.UI.HtmlTextWriter writer)
[0x00000] in <filename unknown>:0
at System.Web.UI.Control.RenderControl (System.Web.UI.HtmlTextWriter writer)
[0x0005f] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Control.cs:1318
at System.Web.UI.Page.RenderPage () [0x00032] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Page.cs:1698
at System.Web.UI.Page.InternalProcessRequest () [0x001d7] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Page.cs:1563
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x0005b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-2.6.4\mcs\class\System.Web\System.Web.UI\Page.cs:1372
Version information: Mono Runtime Version: 2.6.4 (tarball); ASP.NET Version:
2.0.50727.1433
=================================
--
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