"The partial view was not found or no view engine supports the searched locations."
While working on a Application of rendering Partial View in a parent View, I got the following Exception: "The partial view '~/Home/PartialIndex.cshtml' was not found or no view engine supports the searched locations. The following locations were searched"
The Solution I got is:
We have to write the complete path along with the .cshtml extension while rendering the partial View.
Example:
@Html.Partial("~/Views/Home/PartialIndex.cshtml", Model.partialModel)
This solved my problem.
Happy Coding..!
0 Comment(s)