我试图呈现一个位于views目录中的静态超文本标记语言页面,但是当我试图访问该路由时,Node.js控制台触发了一个错误。 错误消息 TypeError: path must be absolute or specify root to res.sendFile
at ServerResponse.sendFile (C:\Users\Administrator\Desktop\node-mvc-setup\node_modules\express\lib\response.js:425:11)
at C:\Users\Administrator\Desktop\node-m
我使用的是Asp.net MVC5,自从4年来在Microsoft平台上工作以来,我还没有遇到过这样的模糊错误!默认MVC5模板中的“管理页”中发生错误。在这里,第26行中的位于_layout.cshtml文件处:
Line 24: <![endif]-->
Line 25:
Line 26: @Scripts.Render("~/js/intf")
Line 27: <script>
Line 28: if (document.documentMode === 10) {
堆栈痕迹上写着:
NullRefer
Uncaught TypeError: elem.getClientRects is not a function
at F.fn.init.offset (jquery-3.2.1.js:9984)
at init._position (kendo.all.js:25000)
at init.open (kendo.all.js:24855)
at init.open (kendo.all.js:31282)
at init._wrapperMousedown (kendo.all.js:31186)
at HTMLDivElement.pro
我正在尝试通过ViewData加载一个SelectList。以前,我已经用一个列表加载了ViewData"Almacenes“。但是,当显示视图时,SelectList上没有预期的数据。如果我检查chrome中的元素,它会显示加载了错误的数据。有谁能帮帮我吗?我会非常感激的。谢谢。 存储库 public interface ISga_eDataService
{
public List<SelectListItem> GetAlmacenes();
} 控制器 public IActionResult Index()