What is Toluu?
Toluu is a free service for sharing the feeds you read and discovering new ones.
Get Invite

MVC Sample Apps

This project is for prototype and sample ASP.NET MVC Sample applications


Commented Issue: Compilation ErrorYesterday
I get this error when running this project in debug mode. Everything seems to be OK, but the Html.ActionLink() seems to be missing a couple of overloads for some reason. If I create a new MVC Web project everything works fine, and those two exact lines exist in the template that gets created.

Compiler Error Message: CS0411: The type arguments for method 'Microsoft.Web.Mvc.LinkExtensions.ActionLink<T>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Action<T>>, string, object)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

Source Error:
Line 21: <div id="main-nav">
Line 22: <ul>
Line 23: <li class="first"><%= Html.ActionLink("Home", "Index", "Home")%></li>
Line 24: <li><%= Html.ActionLink("About Us", "About", "Home")%></li>
Line 25: </ul>
Comments: ** Comment from web user: saravananim **

I am getting the same error. Please let me know if anyone has answer.











Patch Uploaded: #2115November 20

purekrome has uploaded a patch.

Description:
Same as the patch below, except this one works :) (I accidently uploaded the wrong file, below)


Patch Uploaded: #2111November 20

purekrome has uploaded a patch.

Description:
1) allows the pipeline to run Syncronously, for ASP.NET environments
2) captures any workflow exceptions, which can then be bubbled back up to the controller.



Commented Issue: Compilation ErrorNovember 19
I get this error when running this project in debug mode. Everything seems to be OK, but the Html.ActionLink() seems to be missing a couple of overloads for some reason. If I create a new MVC Web project everything works fine, and those two exact lines exist in the template that gets created.

Compiler Error Message: CS0411: The type arguments for method 'Microsoft.Web.Mvc.LinkExtensions.ActionLink<T>(System.Web.Mvc.HtmlHelper, System.Linq.Expressions.Expression<System.Action<T>>, string, object)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

Source Error:
Line 21: <div id="main-nav">
Line 22: <ul>
Line 23: <li class="first"><%= Html.ActionLink("Home", "Index", "Home")%></li>
Line 24: <li><%= Html.ActionLink("About Us", "About", "Home")%></li>
Line 25: </ul>
Comments: ** Comment from web user: RyanTomlinson **

Yes I had the same problem. Try using the following...

<%= Html.ActionLink<HomeController>(x => x.Index(), "Home")%>

Don't know why there is conflict. All that I can think of is that the problem stems from a change in the MVC framework at some point. Although surely this is tested with the latest version (ie beta) before it is released. I'm using the beta of MVC and there seems to be no end of problems in the MVCSamples project.











Commented Issue: Missing DLLs (release 18861)November 13
Just downloaded and unpacked preview 1, release 18861 and can't use it for several reasons...

The Commerce.Tests project is not a recognised type in my version of Visual Studio (2008 Standard). I just removed the project on the assumption that there should be nothing in a real application that critically relies on anything in a test project.

The Commerce.MVC.web project references 2 DLLs not found on my system, and there are no clues as to where I might get them...
System.ComponentModel.DataAnnotations
System.Web.DynamicData

Happily the solution compiles even without these DLLs in place. I expect a runtime error will result very soon though!

Most critical - fatal in fact - is the fact that I have no database for this app to connect to, and there is nothing here to tell me how to set such a database up. A backup would be good, for me to load on to my present SQL Server instance, or maybe a set of DDL and SQL scripts to create the necessary tables, views, stored procedures, etc., and populate them with some initial data.
Comments: ** Comment from web user: brianlowe **

OK, I have the app running now on my desktop.

I needed to update my system with Service Pack 1 for Visual Studio 2008 and Service Pack 1 for the .Net Framework v3.5 - but the missing DLLs still showed up as not availale until after I explicitly viewed their properties and set their paths to "Copy local".

Anyway, now it runs so I can start w