2012-05-08 4 views
0

방금 ​​TFS에서 asp net mvc 프로젝트를 체크 아웃했습니다. 필요한 모든 NuGet 패키지를 설치 한 후 프로젝트를 실행하려고했습니다.'System.Web.Mvc.WebFormView'형식의 생성자가 없습니다.

  • SiteMapTitle()
  • 사이트 맵()
  • 에 SiteMapPath()

다음 MvcSiteMapProvider의 다음 방법 중 하나를 사용하려고 할 때

나는이 오류 메시지가 계속 .NET Framework 4.0, MVC3 및 MvcSiteMapProvider 버전 3.2.2.0을 사용하고 있습니다.

NuGet (패키지 관리자 콘솔)을 통해 MvcSiteMapProvider를 설치했습니다.

내 프로젝트에서 ... \ 패키지 \ MvcSiteMapProvider.3.2.2.0 \ lib 디렉토리 \ net40 \ MvcSiteMapProvider.dll 사용하여 런타임 버전 2.0.50727

[MissingMethodException: Constructor on type 'System.Web.Mvc.WebFormView' not found.] 
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1136 
System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111 
System.Activator.CreateInstance(Type type, Object[] args) +19 
MvcSiteMapProvider.Internal.MvcSiteMapProviderViewEngine.CreatePartialView(ControllerContext controllerContext, String partialPath) +109 
System.Web.Mvc.VirtualPathProviderViewEngine.FindPartialView(ControllerContext controllerContext, String partialViewName, Boolean useCache) +217 
System.Web.Mvc.<>c__DisplayClass8.<FindPartialView>b__7(IViewEngine e) +21 
System.Web.Mvc.ViewEngineCollection.Find(Func`2 lookup, Boolean trackSearchedPaths) +127 
System.Web.Mvc.ViewEngineCollection.FindPartialView(ControllerContext controllerContext, String partialViewName) +170 
System.Web.Mvc.Html.TemplateHelpers.ExecuteTemplate(HtmlHelper html, ViewDataDictionary viewData, String templateName, DataBoundControlMode mode, GetViewNamesDelegate getViewNames, GetDefaultActionsDelegate getDefaultActions) +418 
System.Web.Mvc.Html.TemplateHelpers.TemplateHelper(HtmlHelper html, ModelMetadata metadata, String htmlFieldName, String templateName, DataBoundControlMode mode, Object additionalViewData, ExecuteTemplateDelegate executeTemplate) +1117 
System.Web.Mvc.Html.TemplateHelpers.TemplateHelper(HtmlHelper html, ModelMetadata metadata, String htmlFieldName, String templateName, DataBoundControlMode mode, Object additionalViewData) +66 
System.Web.Mvc.Html.TemplateHelpers.TemplateFor(HtmlHelper`1 html, Expression`1 expression, String templateName, String htmlFieldName, DataBoundControlMode mode, Object additionalViewData, TemplateHelperDelegate templateHelper) +117 
System.Web.Mvc.Html.TemplateHelpers.TemplateFor(HtmlHelper`1 html, Expression`1 expression, String templateName, String htmlFieldName, DataBoundControlMode mode, Object additionalViewData) +100 
System.Web.Mvc.Html.DisplayExtensions.DisplayFor(HtmlHelper`1 html, Expression`1 expression, String templateName) +57 
MvcSiteMapProvider.Web.Html.SiteMapTitleHelper.SiteMapTitle(MvcSiteMapHtmlHelper helper, String templateName) +412 
MvcSiteMapProvider.Web.Html.SiteMapTitleHelper.SiteMapTitle(MvcSiteMapHtmlHelper helper) +33 
ASP._Page_Views_Shared__Layout_cshtml.Execute() in xxx\Views\Shared\_Layout.cshtml:28 

어떤 도움을 주시면 감사하겠습니다 DLL을 참조합니다.

+0

어떤 .NET 버전을 사용하고 있습니까? – Xharze

+0

죄송합니다, 질문에 그것을 추가하지 않았습니다. – ckonig

+0

MvcSiteMapProvider를 어떻게 얻었습니까? 누젯? 수동 빌드? – Xharze

답변

0

버전 3.2.3으로 업데이트하면 작동합니다.

관련 문제