It works, thanks.
I have new question:
While debugging, i a have new error, here:
StructureMapControllerFactory
namespace Commerce.MVC.Web.Controllers {
public class StructureMapControllerFactory: DefaultControllerFactory {
protected override IController GetControllerInstance(Type controllerType) {
IController result = null;
try {
result= ObjectFactory.GetInstance(controllerType) as Controller;
} catch(StructureMapException) {
System.Diagnostics.Debug.WriteLine(ObjectFactory.WhatDoIHave());
throw;
}
return result;
}
}
}
And in browser it looks:
Сообщение об ошибке компилятора: 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.
Ошибка источника:
|
Строка 21: <div id="main-nav"> Строка 22: <ul> Строка 23: <li class="first"><%= Html.ActionLink("Home", "Index", "Home")%></li> Строка 24: <li><%= Html.ActionLink("About Us", "About", "Home")%></li> Строка 25: </ul>
|
Исходный файл: c:\Documents and Settings\Admin\Рабочий стол\mvcsamples-17126\Commerce.Web\App\Views\Shared\Site.Master
Строка: 23
Thanks