使用 SOAP 调试 UI

Debugging using SOAP UI

我遇到了一个奇怪的问题。我开发了一个 mvc web 应用程序并在我的本地计算机上 运行ning 并且可以从 [api_root] 连接到 API https://api-uat1.%domain%.com:443 配置为 web 中的应用程序设置配置。但这是在我的本地。

现在我在 Azure 上发布这个应用程序,在 blade 的应用程序设置选项和 Web 配置中使用相同的连接字符串。

但是这表示当我 运行 来自 Azure 的应用程序时找不到远程主机。

我得到的错误是

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote name could not be resolved: 'api.uat1.<domain>.com' 
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) 
--- End of inner exception stack trace ---<--- 

有没有一种方法可以通过 SOAP UI 或 fiddler 调试 API 但不确定在哪里查看确切原因。有人可以帮忙吗?

您可以按照概述的说明调试您的 Azure 应用 https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging-azure?view=vs-2017#remote_debug_azure_app_service。只需确保您已在调试模式下发布您的应用程序,以便符号将与应用程序二进制文件一起发布。