Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的控制器中调试时,我得到一个有效的模型
然而,随着执行达到return view(model);
return view(model);
我明白了
这个错误是关于什么的?
控制器无法找到包含您的 IndexViewModel 的指定视图
您没有此操作的视图。您可以检查文件夹Index.cshtml中是否存在吗?Loadproduct
Index.cshtml
Loadproduct
看来您尚未在所需位置之一创建视图....查看您的错误,您可能应该在此处查看 /Views/LoadProduct/Index.cshtml