简体   繁体   English

为什么在尝试将调试过程附加到Microsoft Azure应用程序服务时出现错误?

[英]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.

相关问题 Azure App服务奇怪的远程调试错误 - Azure App service odd remote debugging error 为什么从 azure 应用程序服务中的表单发布时出现 404 错误,但它在 localhost 中完美运行 - Why do i get 404 error when posting from form in azure app service but It works perfectly in localhost Microsoft Azure应用服务存储 - Microsoft Azure App Service Storage 使用Azure App Service中托管的WCF服务时出现凭据错误 - Credential Error while consuming the WCF Service hosted in Azure App Service 嗨,我正在尝试在 Azure 应用服务中运行 web 作业,但它抛出与日期时间相关的错误 - Hi, I am trying to run a web job in Azure app service but it is throwing Error related to Datetime 尝试在Azure App服务上使用WEB API时出错 - Error when trying to use WEB API on Azure App service 尝试获取客户端进程可执行文件路径时访问拒绝错误 - Access Denied Error while trying to get the client process executable path 为什么我在调用 web 服务时收到此错误,在序列化 object 类型时检测到循环引用? - Why do i get this error while calling a web service that a circular reference was detected while serializing an object of type? 在Microsoft Azure App Service中部署asp.net Webforms应用程序后出现运行时错误 - Runtime Error after deploy asp.net webforms app in Microsoft Azure App service 为什么我会从Azure收到错误消息“不支持ITraceWriter服务类型。” - Why do I get the error “The service type ITraceWriter is not supported.” from Azure?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM