search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

0x800a1391 - JavaScript runtime error: 'DayPilot' is undefined

Asked by William Clark
6 years ago.

You tutorials and install documentation are incomplete because they leave out many of the details like using directives. I have no doubt you've left out something critical that is causing the error above.

My view has:

@Html.DayPilotGantt("Mission", new DayPilotGanttConfig
BackendURL = Url.Action("Backend", "Mission")

The controller is boilerplate from the tutorial--with the missing Using directives lifted out of the downloaded tutorial (for both the view and the controller).

Line 41 is where the error occurs, and it has:

var v=new DayPilot.Gantt('Mission');

I saw a similar bug report from years past and the response was completely inadequate for something this expensive. I expect more details than that.

Answer posted by Dan Letecky [DayPilot]
6 years ago.

The tutorial text was missing the client-side script reference:

<script src="@Url.Content("~/Scripts/DayPilot/daypilot-all.min.js")" type="text/javascript"></script>

In the sample project ( it is included in the template (Views/Shared/_Layout.cshtml) so it isn't obvious that it is required.

Sorry for the confusion - the tutorial text is now updated.

Let me know if there is any problem.

Comment posted by William Clark
6 years ago.

Thanks for the quick reply.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.