Bug 23228 - Creating an MVC App for Mono is worthless
Summary: Creating an MVC App for Mono is worthless
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Web ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-09-22 01:33 UTC by traderhut
Modified: 2016-01-27 14:15 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description traderhut 2014-09-22 01:33:17 UTC
Description of Problem:

Steps to reproduce the problem:
1. Create a new Asp.Net MVC Application (without unit tests)
2. Try to even do a @Html.BeginForm() call, a @Html.TextBoxFor() call, or dang near anything

Actual Results:

Various Exceptions like calling a method that doesn't exist.

Expected Results:

A <Form> tag in the output, or a TextBox (<Input> being created)

How often does this happen? 
Every time

Additional Information:

MVC 5 isn't supported, but there are no templates for any of the previous MVC apps that *ARE* supported by Mono - why can't I create an MVC 3 app - that is fully supported by Mono?  I can't create anything useful at all with Xamarin, creating any kind of website as far as I can tell.  I'm trying to create a Razor MVC page and everything I do craps out.

Furthermore, Reformatting, and Comment out, and Completion of code, and heck, even the basic syntax checking doesn't work.  If I put in a call like @Html.TextBoxFor (p->p.foo)   It says it is missing a closing ), and If I put in one then it is happy - of course, it shows a ')' after the text box when run in a Real environment (Visual Studio - cut and pasted the .cshtml file contents and sure enough, it worked just fine.

Tried dropping the version of the .Net it was built for to 4.0 and even 3.5 but that did nothing or threw errors because it was a template clearly designed for .Net 4.5 or greater.

I can't believe that anyone went as far as to say it was even creating a template and putting it out for people to use without support for an @Html.BeginForm() call!

Amazing.   I was told by someone at work not to consider Mono for any website work in MVC, and OMG they are so right.  That sucks, because it looks like I'll have to run the server under actual Windows and that means higher cost to run the box. (for the stupid OS)

Comment 1 traderhut 2015-12-27 23:03:05 UTC
It has been a year and 3 months, still no functioning version of MVC can be made by Xamarin Studio - WTF?  I just got the latest, tried again to create a MVC app, and it "works" - IF you want to do MVC WITHOUT ANY forms!!  And no controls on the forms.  Sure, you can drop back to HTML and enter all the <form> and <input> tags yourself - but this is crazy.  You should shelve the '5.x' version until it actually is supported, and provide a template for a WORKING version!  Surely, you created a template back when it didn't work with a previous version and dropped that when 5.x came out?  Well, I would expect that that version is now supported and works, where the junk you include is worthless still.

I also had it say that 3 packages needed to be updated, so I did and low and behold it didn't even build after that.

I simply want a MVC 3 or later app that works.   No need for the bleeding edge, just give me something that works - or tell me how to create it.

Comment 2 Lluis Sanchez 2016-01-27 14:15:40 UTC
ASP.NET support has been greatly improved in XS 6.0.