无法在 Azure 上部署 asp.net web api 调试模式

Can't deploy asp.net web api debug mode on azure

我有一个 asp.net 网络 api 应用程序。它工作得很好。 我将它部署在一个 azure web 应用程序上(右键单击 -> 发布...)。我可以使用 url xxxxxx.azurewebsites.net/Token 获取令牌,但是当我调用 url xxxx.azurewebsites.net/api/xxxx 时,它 returns 错误500。 所以我想远程调试我的应用程序,我尝试使用 "Configuration : Debug" 进行部署,但是当我这样做时,出现错误:

Error   5   Web deployment task failed. (Création d'une application qui n'est pas prise en charge par cet environnement serveur.
  Pour en savoir plus : http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_NOT_SUPPORTED.)     0   0   Api

抱歉,这是一个法语错误(翻译:创建此服务器环境不支持的应用程序。查看更多:)。

有谁知道如何在调试中部署吗?

谢谢。

敬礼!我不确定该特定错误,但远程调试需要附加调试器。查看这篇 Microsoft 文章,其中描述了如何设置 Visual Studio 以远程调试 Azure 网站。

https://azure.microsoft.com/blog/2014/05/06/introduction-to-remote-debugging-on-azure-web-sites/