Visual Studio 2022调试web(.net core 6)项目时,input上传文件导致进程退出

Visual Studio 2022调试web(.net core 6)项目时,input上传文件导致进程退出

问题描述

选择文件后提交发现调试窗口已退出,后面发现是input控件选择文件后就直接调试已断开,但是浏览器看起来正常,操作提交才发现后端已停止服务。
input代码:

<div class="form-group row">
        <label asp-for="Photos" class="col-sm-2 col-form-label"></label>
        <div class="col-sm-10">
            <div class="custom-file">
                <input asp-for="Photos" multiple class="form-control custom-file-input">                  
                <label class="custom-file-label">请选择照片....</label>
            </div>              
        </div>
    </div>

解决方案

方式一:以为中断设置有问题导致,按ctrl+alt+E,在调出的窗口把“引发”这一列全部勾上就可以了,测试后发现问题仍然存在

在这里插入图片描述

方式二:工具>选项>项目和解决方案>web项目>如图取消打钩,保存退出重新打开重试,发现问题解决了

在这里插入图片描述
END

  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
About the Book<br/><br/>Real-world developer training for results on the job—and on the exam.<br/><br/>Build real-world programming skills—and prepare for MCP Exams 70-305 and 70-315—with this official Microsoft study guide. Work at your own pace through the lessons and hands-on exercises to learn how to build Web applications using Visual Basic .NET and Visual C# .NET. Then extend your expertise through additional skill-building exercises. As you gain practical experience with essential Web development tasks, you’re also preparing for MCAD or MCSD certification for Microsoft .NET.<br/>Learn how to: <br/>•Use Microsoft ASP.NET to build Web Forms applications <br/>•Create user services, including user input, localization features, and online help<br/>•Access and modify data with Microsoft ADO.NET<br/>•Build and reuse custom Web controls<br/>•Manage application appearance and behavior with style sheets and XML<br/>•Configure security features for Web applications, including authentication and authorization<br/>•Test and debug coding errors<br/>•Deploy applications to your server or hosting service <br/>•Maintain and optimize applications<br/><br/>Your kit includes:<br/>•NEW—60-day evaluation version of Microsoft Visual Studio® .NET 2003 Professional Edition on DVD<br/>•Comprehensive self-paced study guide that maps to the objectives of the final exams<br/>•NEW—Expanded coverage on delegates, events, unmanaged code, COM, and installation programs, plus a new chapter on caching<br/>•NEW—150 challenging practice questions on CD. Test yourself by exam (70-305 or 70-315) or by individual objective(s). Choose the number of questions and timed or untimed mode. You get automated scoring and detailed explanation for both correct and incorrect answers.<br/>•NEW—20-question interactive game<br/>•NEW—300+ revised and tested code samples and labs for Visual C# .NET and Visual Basic .NET<br/>•Learn-by-doing exercises for skills you can apply to the job<br/>•Fully searchable eBook<br/><br/>Related Books<br/><br/>MCAD/MCSD Self-Paced Training Kit: Implementing Security for Applications with Microsoft® Visual Basic® .NET and Microsoft Visual C#® .NET<br/>MCAD/MCSD Self-Paced Training Kit: Developing Windows®-Based Applications with Microsoft® Visual Basic® .NET and Microsoft Visual C#® .NET, Second Ed<br/>MCAD/MCSD Self-Paced Training Kit: Microsoft® .NET Core Requirements, Exams 70-305/70-315, 70-306/70-316, 70-310/70-320, and 70-300

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值