我有一个非常简单的ToDo演示应用程序,我将它从.NET 4.5升级到.NETCore2.1。应用程序在本地运行,没有错误。当我正确地单击“发布到Azure Web应用程序”时,我会得到以下错误:
This xxxx.azurewebsites.netpage can’t be found.No webpage was found for the web address: ht
在我的.NETCoreWebAPI项目中,许多控制器端点都有类似以下示例的代码 public async Task<ActionResult<User>> UpdateUserUsernameAsyncreturn new StatusCodeResult(StatusCodes.Status500InternalServerError); } 我想为捕获异常的控制器创
在asp.net 4中,我只需从NuGet中添加WebApi,就可以开始添加从ApiController继承的ApiControllers (在全局文件中设置了一点之后)。虽然添加了using System.Web.Http;,但在我的班级中,ApiController中的squiggley确实被去掉了:public class ContactController : Api