简体   繁体   English

Azure Web应用程序意外崩溃

[英]Azure web app unexpected crash

I have a web app which is running in Azure. 我有一个正在Azure中运行的Web应用程序。 When I try to debug it in VS, I can get as far as to var newResume = new Resume() {JobId = (int)jobid}; 当我尝试在VS中调试它时,我可以得到var newResume = new Resume(){JobId =(int)jobid};。 line (I get correct jobid), but then I get "server error" and page is redirected to error page. 行(我得到正确的jobid),但随后出现“服务器错误”,页面被重定向到错误页面。 Everything works locally. 一切都在本地工作。 What can be the problem? 可能是什么问题? Thanks for your time 谢谢你的时间

[HttpGet]
public ActionResult Create(int jobid)
{
    var newResume = new Resume() {JobId = jobid};
    return View(newResume);
}

I fixed it. 我修好了它。 In the project file view was not configured to be added 在项目文件视图中未配置要添加

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM