[英]Why I get error while trying to attached debugging process to a Microsoft Azure app service?
I am working on Azure Cloud , I have many APP services which i can explore from my visual studio by clicking View in the tool bar and select Cloud explorer . 我正在使用Azure Cloud,我有很多APP服务,可以通过单击工具栏中的“查看”并选择“ Cloud Explorer”从Visual Studio中进行探索。
I opened visual studio on the project that contains my API which i want to debug it remotely , then i had set break points in the places i want to hit . 我在包含要远程调试它的API的项目上打开了Visual Studio,然后在要命中的位置设置了断点。
Then i clicked View on the visual studio top menu and selected Cloud explorer , then it opened all the services which are on the Azure cloud . 然后,我在Visual Studio顶部菜单上单击“查看”,然后选择“ Cloud Explorer”,然后它打开了Azure云上的所有服务。 i selected the required service and clicked right click , then selected Attach Debugger , but it keeps giving me an Exception as you can see in the attached image .
我选择了所需的服务,然后单击鼠标右键,然后选择“附加调试器”,但是如您在附加的图像中看到的那样,它一直给我一个异常。
I tried to turn off the fire wall and checked that the remote debugging is enabled on the required App service and it was enabled , but couldn't debug the service successfully .. 我试图关闭防火墙,并检查是否已在必需的App服务上启用了远程调试,并且已启用该远程调试,但是无法成功调试该服务。
I had tried to debug other services rather than this one and it worked successfully , anyone have an idea on a similar issue ? 我曾尝试调试其他服务而不是此服务,并且该服务成功运行,有人对类似问题有想法吗?
find the attached image for the error details and the line that scratched by black contains the app service name on Azure 查找附件中的错误详细信息,黑色划痕的行包含Azure上的应用程序服务名称
Ensure that Remote debugging is enabled for the correction version of VS (2019) and app bitness is correctly selected (32 vs 64 bit). 确保已为VS的更正版本(2019)启用了远程调试,并且正确选择了应用程序位(32 vs 64位)。 Take a look at the screenshot for the steps:
查看屏幕截图中的步骤:
Also, ensure that you have the latest SDK ( https://azure.microsoft.com/downloads/ ) installed and all the Prerequisites ( https://docs.microsoft.com/azure/app-service/app-service-web-get-started-dotnet#prerequisites ) are met. 另外,请确保您已安装最新的SDK( https://azure.microsoft.com/downloads/ )和所有必备软件( https://docs.microsoft.com/azure/app-service/app-service-web -get-started-dotnet#prerequisites )。 Close and re-open VS as 'Run as administrator' and then check to see if it helps.
以“以管理员身份运行”的身份关闭并重新打开VS,然后检查是否有帮助。 If feasible, restart the app and then check again and let us know for further investigation.
如果可行,请重新启动该应用程序,然后再次检查并告知我们进一步调查。
As mentioned in the blog check on how to attach the process manually. 如博客中所述,检查如何手动附加流程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.