The ASP. NET MVC page error system.invalidoperationexception the view found at ' ~/views/home/index.cshtml ' is not created.

Source: Internet
Author: User
Tags stack trace

Application Exceptionsystem.invalidoperationexception
The view found at ' ~/views/home/index.cshtml ' is not created. Description:http 500.Error processing request. Details:non-web exception. Exception origin (name of Application or object): System.Web.Mvc.Exception stack Trace:at System.Web.Mvc.BuildManagerCompiledView.Render (System.Web.Mvc.ViewContext viewcontext, System.IO.TextWriter writer) [0x00061]
Inch<cc73190bab9d435c831510ff295c572a>: 0 at System.Web.Mvc.ViewResultBase.ExecuteResult (System.Web.Mvc.ControllerContext context) [0x00080] in<cc73190bab9d435c831510ff295c572a>: 0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext ControllerContext, System.Web.Mvc.ActionResult actionresult) [0x00000]
Inch<cc73190bab9d435c831510ff295c572a>: 0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive (System.Collections.Generic.IList ' 1[t] Filters, System.Int32 filterindex, System.Web.Mvc.ResultExecutingContext Precontext, System.Web.Mvc.ControllerContext ControllerContext, System.Web.Mvc.ActionResult actionresult) [0x0000b]
Inch<cc73190bab9d435c831510ff295c572a>: 0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive (System.Collections.Generic.IList ' 1[t] Filters, System.Int32 filterindex, System.Web.Mvc.ResultExecutingContext Precontext, System.Web.Mvc.ControllerContext ControllerContext, System.Web.Mvc.ActionResult actionresult) [0x0009b]
Inch<cc73190bab9d435c831510ff295c572a>: 0 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters (System.Web.Mvc.ControllerContext ControllerContext, System.Collections.Generic.IList ' 1[t] filters, System.Web.Mvc.ActionResult actionresult) [ 0X0000A]
Inch<cc73190bab9d435c831510ff295c572a>: 0 at system.web.mvc.async.asynccontrolleractioninvoker+<>c__displayclass21+<>C__displayclass2b.<begininvokeaction>B__1C () [0x0008a] in<cc73190bab9d435c831510ff295c572a>: 0

WORKAROUND: This may be because the class library is missing from the WEB Server deployment environment System.Web.WebPages.Deployment.dll

Of course, there are many reasons for this error, which is only a solution for reference.

The ASP. NET MVC page error system.invalidoperationexception the view found at ' ~/views/home/index.cshtml ' is not created.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.