Jul 24 2023 08:38 AM
I want to develop a remote event receiver for SharePoint online document library. But i am having difficulties in debugging this remote event receiver from visual studio . I found this link https://blog.virtosoftware.com/remote-event-receivers-creating-and-debugging-sharepoint-online/ which describes how to use service bus for debugging, but when I tried to create the service bus I got this error message: -
New-AzureSBNamespace "TestTestingServiceBus" -CreateACSNamespace $true -NamespaceType Messaging New-AzureSBNamespace : <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">{"Details":"Azure Service Management APIs have been deprecated for messaging services as of November 1, 2021 and replaced with Azure Resource Management APIs. For more information, please visit https://azure.microsoft.com/updates/asm-api-messaging-services-retirement/"}</string> At line:1 char:1 + New-AzureSBNamespace "TestTestingServiceBus" -CreateACSNamespace $tru ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [New-AzureSBNamespace], CloudException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceBus.NewAzureSBNamespaceCommand
so seems the approach mentioned in the link is very old. So can anyone help me to figure out how we can debug remote event receivers in SharePoint online?
Sep 27 2023 12:18 PM
Sep 27 2023 05:43 PM
@Waaromiknietthanks for the reply and link, so did you use this fro debugging remote event receiver? Second question, is this tool a reverse proxy? similar to ngrok ?
Sep 27 2023 10:36 PM
Sep 28 2023 05:27 AM
@Waaromiknietok will try it thanks
Sep 29 2023 11:36 AM
@WaaromiknietI tried to debug a test remote event receiver but could not find the way to do so,, can you advice on the needed steps please?
Sep 29 2023 11:43 AM
Sep 29 2023 11:53 AM - edited Sep 29 2023 01:15 PM
These are the steps I used
I have a WCF RER hosted in my project in folder services\rer.svc
I host this project local on port 53797
I push F5 and run the project.
My service is running at http://localhost:53797/services/rer.svc
I run .\devtunnel.exe user login and login with my M365 account
I run .\devtunnel.exe host -p 53797 --allow-anonymous
I get a devtunnel URL. For example https://gblq14ee-53797.euw.devtunnels.ms
I attach my rer with this url https://gblq14ee-53797.euw.devtunnels.ms/services/rer.svc