ASP.NET MVC

You can find more information about ASP.NET MVC (quickstarts, tutorials, screencasts etc...) on the ASP.NET MVC site site.

ASP.NET MVC 2 Beta is now available! The roadmap provides more detail.

ASP.NET MVC Road Map

The ASP.NET MVC 1.0 RTM release is available on the MSDN download center. Be sure to check out the readme for the latest release notes.

How to Provide Feedback

Because we highly value your input on this release version, please do submit feedback. There are two primary means for providing feedback:
  1. The ASP.NET MVC Forum on the ASP.NET Forums site allows you to engage in discussions with other customers and with the ASP.NET MVC product team. This is a great place to ask questions, post comments, and learn more about using ASP.NET MVC.
  2. The Issue Tracker tab on this site allows you to file bugs to the product team for consideration. The Issue Tracker is voting-based, so bugs with the most votes are given priority. (However, the product team will consider each issue individually, and more votes does not necessarily guarantee acceptance.)
Tip: Please use "Issue" type for logging bugs and "Feature" type for logging new feature suggestions.
Download: ASP.NET MVC v1.0 Source

Unit Test Integration

The ASP.NET MVC Project template (which we'll upload to this project very soon) provides a unit test dialog which allows you to select a unit test framework from a drop down. We are working closely with unit test framework providers to intergrate their frameworks into that drop down. The following is a list of those projects which have installers that integrate with ASP.NET MVC. These projects are run by others in the community, not the ASP.NET team.

Other Interesting Projects:

  • MVCContrib: A Codeplex project to add functionality to ASP.NET MVC. This project is run by others in the community, not the ASP.NET team.
Last edited Tue at 11:17 PM by Haacked, version 33
Comments
johnnyhalife Sep 1 2008 at 4:41 AM 
Guys, I found that Juan Pablo Garcia from Southworks has published the MVC 5 templates (among others) that are compliant with StyleCop, if you are running this tool you might find his post useful, as I did:
http://blogs.southworks.net/jpgarcia/2008/09/01/visual-studio-2008-templates-compliant-with-microsoft-stylecop/

corydeppen Sep 13 2008 at 4:02 AM 
The ReadMe page for the latest version doesn't have any information about Preview 5 yet.

gerrylowry Oct 16 2008 at 4:07 PM 
I see that Rob Conery, Scott Hanselman, and Phil Haack have written
"Professional ASP.NET 3.5 MVC, 400 pages, Wrox, 978-470-38461-9
as per page 48 of the Wiley Winter 2009 Technology catalogue.
The publication date is shown as "in stores" October 20.

Since currently ASP.NET MVC is still in BETA (Preview Release 5), has the
publication of the Microsoft team's book been delayed? If not, to which
preview release does the publication pertain?

In the past, Wrox has printed "Public Beta Release" on the front covers of books like
"Introducing .Net" (2000). The cover photograph in the Wiley Winter 2009 Technology
catalogue shows no such designation.

Please comment, Rob Conery, and/or Scott Hanselman, and/or Phil Haack.

Thank you.

gerrylowry Oct 18 2008 at 3:43 PM 
You can find more information about ASP.NET MVC (quickstarts, tutorials, screencasts etc...) on the ASP.NET MVC site site.
http://www.asp.net/mvc/ : crashing today (Saturday 2008-10-18, 10:39 EasternTime):
Server Error in '/' Application. ~~ Runtime Error

gerrylowry Nov 11 2008 at 2:30 AM 
Unit Test Integration

Caveat Emptor: although "The ASP.NET MVC Project template ... provides a unit test dialog which allows you to select a unit test framework from a drop down", do not get your hopes too high if you're using VWD 2008 SP1. ASP.NET MVC does not work period with the orginal VWD 2008. Whether TDD and ASP.NET MVC can be easily used with VWD 2008 SP1 depends on a number of factors. Stay tuned.

BTW, the catch 22 here is that ASP.NET MVC is designed with enabling TDD in mind AFAIK.

Since novices getting their feet wet are likely to do so with the entry level product VWD 2008 SP1,
it would imo be a reasonable goal to have more harmony between ASP.NET MVC "official" Beta,
VWD 2008 SP1, and the family of TDD tools and utilities.

saravananim Dec 23 2008 at 9:35 AM 
Hi,

I am using asp.net mvc preview 5 for one of my project. If i run my website from IIS 5 then it throws below error. But if i run using visual studio 2008 F5 then it works fine. If anyone faced this kind of problem please let me know how you fixed it

Server Error in '/' Application.
--------------------------------------------------------------------------------

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 163: %>
Line 164: <%var Signin = Html.Resource("globalResources, Signin"); %>
Line 165: <%=Html.ActionLink(Signin.ToString(), "Login", "Account")%> |
Line 166: <%var register = Html.Resource("globalResources, register"); %>
Line 167: <%= Html.ActionLink(register.ToString(), "Register", "Account")%> |


Source File: d:\Technical Workshop\MuchSocial.com\Sourcecode\MuchSocial\MuchSocial\Views\Shared\UserSite.Master Line: 165

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
ASP.views_shared_usersite_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\Technical Workshop\MuchSocial.com\Sourcecode\MuchSocial\MuchSocial\Views\Shared\UserSite.Master:165
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +

Regards,
Saravanan

thuang Jan 23 at 1:49 AM 
A ScriptManager-lite for MVC:
http://www.codeplex.com/MvcScriptManager

Looking forward to the one from ASP.NET team.

stayboy Feb 12 at 12:06 PM 
I have been noticing an error with MVC RC. The MVC beta on accessing dbnull values wasnt throwing any exception. this is excellent because bindingsource on windows forms works likewise...i dont want to force values to the database when such fields should contain DBNULL. How do i solve this issue with the MVC Release candidate

marquinhocb Apr 23 at 11:13 PM 
I must say that I am a little dissapointed at the hate going around for using controls, and I am glad that you've added it to MVC Futures. Controls are great - as long as they don't have the ridiculous ViewState (or ControlState). For 2 great reasons - a page with controls is still valid XML, and the controls themselves are statically declared on the server side (as objects of the partial class).

Unfortunately, the latter advantage isn't currently used in MVC. What I mean is: these mvc controls could be used during data binding so that, instead of simply using the post values, they can be verified against declared controls to be validated as specifiable.

For example, if we have a user form with the following fields:

<mvc:TextBox name="FirstName" />
<mvc:TextBox name="LastName" />

When binding for the action:
class User
{
public string FirstName { get; set; }
public string LastName { get; set; }
public bool Administrator { get; set; }

}

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult EditUser (User u)
{
}

In the current MVC model, we must specify [Bind(Include="FirstName,LastName")] - is there any plan to, in the future, automatically build an include list based on the controls in the view?

coldboyqn Jun 22 at 9:12 AM 
Hi guys, it would be nice if you just deploy the pdb file together with the release version of the System.Web.Mvc.dll. It would ease us alot in debugging mvc app.

mmtache Jun 29 at 10:19 PM 
Can you guys pleaaaaaaase make a dynamic help file for Visual Studio (2008)??

marquinhocb Aug 15 at 9:24 AM 
It would be great to see typesafe controls become part of the standard MVC package:
http://mvcimproved.codeplex.com/

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987