레이아웃에 차트를 표시하려고합니다. 차트는 partialview 내부에 있습니다. { ". 핸들러 'System.Web.Mvc.HttpHandlerUtil + ServerExecuteHttpHandlerAsyncWrapper'에 대한 자식 요청을 실행 오류"}레이아웃에서 PartialVIew에 차트를 표시하지 않습니까?
이 내 OfficeStatisticNKIcontroller입니다 : :하지만이 오류 :::
가새로운 오류
을 얻을 컨트롤러Execution of the child request failed. Please examine the InnerException for more information
The controller for path '/' was not found or does not implement IController.
public ActionResult Partialchart()
{
OfficeStatisticQueryViewModel model = new OfficeStatisticQueryViewModel();
model.StartDate = DateTime.Now.ToShortDateString();
model.EndDate = DateTime.Now.ToShortDateString();
int allcompletedNKI = OfficeStatisticRepository.AllCompletedGoalCards();
model.AllCompletedNKI = allcompletedNKI;
var averageGrades = OfficeStatisticRepository.GetAverageGradeForAllCoreValues2();
if (averageGrades.Count != 0)
{
var dataItems = (averageGrades.Select(averageGrade => averageGrade.AverageGrade).ToArray());
Data data = new Data(
dataItems.Select(y => new Point { Color = GetBarColour(y), Y = y }).ToArray());
Highcharts chart1 = new Highcharts("Chart")
.SetXAxis(new XAxis { Categories = averageGrades.Select(averageGrade => averageGrade.CoreValue.Name).ToArray() })
.SetYAxis(new YAxis { Min = 0, Max = 10, TickInterval = 1, Title = new YAxisTitle { Text = "Betygskalan" } })
.SetSeries(new Series { Data = data, Name = "Snittbetyg" })
.SetLegend(new Legend { Enabled = false })
.SetTitle(new Title { Text = "statistic" })
.InitChart(new Chart { DefaultSeriesType = ChartTypes.Column });
model.Chart = chart1;
model.message = " ";
return PartialView(model);
}
else
{
model.message = "error";
return PartialView(model);
}
}
이 내 레이아웃에 내 코드입니다 :
@Html.Action("Partialchart","OfficeStatisticNKI");
내가하고 싶은 것은이 차트를 표시하는 것입니다. 내가 뭘 잘못하고있는 걸까요? 사전
내부 예외는 무엇을 말합니까? – CallumVass
경로 '/'의 컨트롤러가 없거나 IController를 구현하지 않습니다. – Obsivus