Forum Discussion

john john's avatar
john john
Steel Contributor
Jul 24, 2023

Debugging a Remote Event Receiver using service bus

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?

7 Replies

  • Waaromikniet's avatar
    Waaromikniet
    Brass Contributor
    We currently use this devtunnel tool provided by MS
    https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/get-started?tabs=windows
    You can host a tunnel to your project hosted locally
    • john john's avatar
      john john
      Steel Contributor

      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 ?

      • Waaromikniet's avatar
        Waaromikniet
        Brass Contributor
        Yes, This is similar to Ngrok. Except it is free to use (for now). You log in using your M365 account
        We indeed use it to debug our remote event recievers.

Resources