I am trying to create a Remote event receiver on SharePoint online. I followed steps given in the below url to create it :

Steps to create a remote event receiver

RER is getting deployed successfully but not getting triggered. I tried to debug it but I am getting below message

One or more services were unregistered from the Microsoft Azure Service Bus. Cannot register Services/AppEventReceiver.svc on Microsoft Azure Service Bus: The remote server returned an error: (500) Internal Server Error.

I looked for the message and getting solution related to Connection string only. I have tried creating Service Bus from Azure UI and using Powershell both, but still not able to debug the solution.

Any ideas?

1 Answer 1


What’s the type of connection string you used to connect to the Microsoft Azure Service Bus, ACS or SAS?

If you use ACS, it seems the Microsoft Azure Access Control Service (ACS) is restired, you can migrate to SAS refer to the article: How to: Migrate from the Azure Access Control Service

Or use the cloud explorer in Visual Studio and "attach debugger".

Reference: Debugging an Azure cloud service or virtual machine in Visual Studio

Or use a proxy.

Reference: Remote Event Receivers – you’re all doing it wrong

  • In Azure I am not getting option of ACS or SAS for connection string. It is displaying Primary connection string and secondary connection string. I have tried using both of the connection strings but it's not working of any of them. I am using Azure free trial as of now. Is this can be the reason. Moreover I will try to other debug options.
    – notorious
    Jan 1, 2020 at 6:58
  • It seems we can use Azure free trial. You can check the link to verify the process of configuring Azure service bus: blog.virtosoftware.com/… Jan 1, 2020 at 7:13
  • Seems like I am following the exact process. The only difference is ACS(in example) and Primary connection string(in my case). I have tried creating service bus from both UI and Power Shell. I am not able to understand where things going wrong. Since I am working with RER and Azure for the first time so don't have much idea about it.
    – notorious
    Jan 1, 2020 at 7:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.