2012-12-28 17 views
5

Trong khi triển khai dự án MVC 2.0 của tôi vào máy chủ, tôi nhận được lỗi sau đây. Về cơ bản, mọi thứ đều ổn. Tôi muốn tìm ra lỗi này.Stack Trace: tại System.Web.HttpServerUtility.ExecuteInternal() || Lỗi khi thực hiện yêu cầu con cho trình xử lý trong MVC 2.0

Chúng tôi đã sử dụng HttpWebRequest cho chức năng này.

Đối với toàn bộ trang web Thuật ngữ tìm kiếm mà chúng tôi đã tạo Thư viện điều khiển này. Về cơ bản tìm kiếm đang diễn ra nhưng trong trang trống của máy chủ được hiển thị trong khi tìm kiếm. Ngoại lệ tệp hiển thị gợi ý lỗi sau.
bất kỳ ai có thể giúp tôi xin để tìm ra ngoại lệ này.?

Date Time : 12/28/2012 11:19:28 AM 
Exception : Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'. 
Stack Trace : 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.ViewPage.RenderView(ViewContext viewContext) 
    at System.Web.Mvc.WebFormView.RenderViewPage(ViewContext context, ViewPage page) 
    at System.Web.Mvc.WebFormView.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.InvokeAction(ControllerContext controllerContext, String actionName) 
    at System.Web.Mvc.Controller.ExecuteCore() 
    at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) 
    at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) 
    at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__4() 
    at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0() 
    at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) 
    at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() 
    at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) 
    at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) 
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

Cảm ơn trước.

Trả lời

1

Check-out sau này có thể gây ra cho bạn các lỗi:

1.If your controller doesn't provide a model instance i.e: the model cant be instantiated. 
2.You might be missing some stored procedure which returns data to your controller during deployment. 
3.Check your connection strings in web.config. It should be in acceptable format. 
4.Some how the application cannot initialize database connection. 

và nếu tôi đoán là kiểm tra ngay trong tập tin cấu hình web của bạn cho dù cấu hình đúng ..

+0

lớn Al- của nó Gates tuyệt vời ... – RajeshKdev

Các vấn đề liên quan