在本地为开发人员站点调试SharePoint Remote Event Receiver。 [英] Debugging SharePoint Remote Event Receiver for a developer site locally.

查看:108
本文介绍了在本地为开发人员站点调试SharePoint Remote Event Receiver。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我创建了一个SharePoint AddIn,并在本地部署到SharePoint 2016开发人员测试站点。我在同一个AddIn中也有一个远程事件接收器,当添加一个列表项时它没有触发。


我尝试使用Visual Studio 2015进行调试,但调试点没有响应。


我没有更改Elements.xml中的任何内容。


我尝试在调试时附加所有可用的w3wp.exe进程,但没有运气。


请解释如何调试此问题。


谢谢


gsreel



解决方案

您好,


根据您的描述,您在本地使用SharePoint 2016.


如果测试SharePoint站点与Visual Studio位于不同的计算机上,则需要使用Azure Service Bus来调试远程事件接收器。


了解有关如何在测试SharePoint站点与Visual Studio位于不同计算机上或使用SharePoint Online Developer站点作为
测试站点时调试远程事件接收器的详细信息: / span>


https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/debug-and-troubleshoot-a-remote-event-receiver- in-a-sharepoint-add-in


如果测试SharePoint场位于运行Visual Studio的同一台计算机上,则无需配置Azure Service Bus。


Web服务添加到Web应用程序以处理您指定的远程事件。请检查该服务是否存在以及是否处理了远程事件。


这是一个类似问题的线程"远程事件接收器未触发"问题供您参考:


https://social.msdn.microsoft.com/Forums/Lync/en-US/ff78c575-27a8-4561-93ac-a6a440908871/sp2013- remote-event-receivers-wont-fire-in-onpremises-providerhosted-app?forum = appsforsharepoint


有关如何创建远程事件接收器和测试事件句柄的信息:


https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/create-a-remote-event-receiver-in-sharepoint-add-ins


最好的问候,


<跨度>琳达


Hi Everyone,

I created a SharePoint AddIn and deployed to a SharePoint 2016 developer test site locally. I also have a Remote event receiver in the same AddIn which is not firing when a list item is added.

I tried to debug using Visual Studio 2015 but debug point is not hitting.

I didn't change anything in Elements.xml.

I tried attaching all the available w3wp.exe processes while debugging but no luck.

Please explain how to debug the issue.

Thanks

gsreel

解决方案

Hi,

Per your description, you are using SharePoint 2016 on-premises.

If your test SharePoint site is on a different computer from Visual Studio, you need to use Azure Service Bus for debugging remote event receiver.

Learn more about how to debug a remote event receiver when the test SharePoint site is on a different computer from Visual Studio or you are using a SharePoint Online Developer Site as your test site:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/debug-and-troubleshoot-a-remote-event-receiver-in-a-sharepoint-add-in

If your test SharePoint farm is on the same computer that is running Visual Studio, you don’t need to configure Azure Service Bus.

A web service is added to the web application to handle the remote event that you specified. Please check whether the service exists and remote event is handled by it.

Here is a thread with similar issue "remote event receiver is not firing" issue for your reference:

https://social.msdn.microsoft.com/Forums/Lync/en-US/ff78c575-27a8-4561-93ac-a6a440908871/sp2013-remote-event-receivers-wont-fire-in-onpremises-providerhosted-app?forum=appsforsharepoint

Information about how to create a remote event receiver and test the event handle:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/create-a-remote-event-receiver-in-sharepoint-add-ins

Best Regards,

Linda


这篇关于在本地为开发人员站点调试SharePoint Remote Event Receiver。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆