MVC3在部署后无法工作

时间:2012-12-14 12:50:16

标签: vb.net asp.net-mvc-3 iis deployment

我目前正在开发一个MVC3应用程序(Win XP IIS 5.4),它在我的IIS本地主机上运行正常。

现在我在IIS 5.4上的Win XP嵌入式PC上发布并部署了应用程序,我收到此错误:

 Error executing child request for handler   'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.

完整追踪:

at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)    
at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)     
at System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) at System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)     
at System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter)     
at System.Web.Mvc.Html.ChildActionExtensions.RenderAction(HtmlHelper htmlHelper, String actionName, String controllerName)    
at ASP._Page_Views_Home_Index_vbhtml.Execute() in C:\Documents and Settings\Administrator\Desktop\publish\Views\Home\Index.vbhtml:line 45    
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()     
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()     
at System.Web.WebPages.StartPage.RunPage()     
at System.Web.WebPages.StartPage.ExecutePageHierarchy()    
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)     
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)     
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)     
at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)     
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)    
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19()     
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation)    
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1c.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b()     
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)     
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)

在我的Home / index.vbhtml的第45行,我渲染了这样的其他动作:

@Code
   Html.RenderAction("MobileCollection", "Setting")
   Html.RenderAction("MobileCollection", "Teaching")
   'Html.RenderAction("MobileCollection", "IO")
   Html.RenderAction("MobileCollection", "Home")
End Code

我不知道为什么这不适用于其他系统...

0 个答案:

没有答案