3

I am in the process of migrating our SharePoint 2013 on-premises to Office 365. Now inside our SharePoint on-premises 2013 I have 7 event receivers which get fired when items are (created, creating, updated, updating, deleted and deleting). Now I want to start converting these server side event receivers to be remote event receivers. so I got these installed/created inside my windows machine:-

  1. Visual studio professional 2015, with all the necessary dependencies for SharePoint.

  2. I created the site collections inside our office 365 farm, and I move the data and documents from our on-premises sites.

Now I want to start developing the remote event receivers. but not sure where I need to deploy these remote event receivers? For example when I developed the server side ER, I deployed them inside the same SharePoint application server. but for the remote event receivers where these should be deployed? for example under an Azure server? or remote ER can be deployed under any windows server which are exposed to the internet ??

second question. now when I want to test my server-side ER I run the server-side ER from visual studio, and i can even install/deploy the ER from Visual studio directly. so when it comes to remote ER how I can test my remote ER prior to deploying them ??

Thanks for any help and feedback. Regards

2

You can deploy a remote event receiver to any web server anywhere you want, as long as it's exposed over the Internet. There's nothing special about Azure in this respect, except that it's convenient and likely to be familiar to developers on the Microsoft stack. You'll need to re-implement your code since the development models are different (remote APIs versus server side code).

As far as testing goes, that's always been a gap in the development patterns for remote event receivers. But you can run your service in localhost and use ngrok to proxy the web traffic back to your machine. I explain a a little more detail how I set up remote event receivers in a blog post I wrote.

  • thanks for the useful reply. so now when I develop the remote ER inside Visual Studio and I run the project, seems the RER will run on the local iis inside my dev machine, so I can add breakpoints and debug the remote ER code. But to deploy this inside our live office 365, then I can deploy this remote ER to any IIS running under a window server exposed to the internet? if the answer is yes (I can deploy the remote ER to any remote server exposed to the internet), then how I can link the remote server which host the remote ER with the SharePoint lists? I can not get my head around this? – SharePoint TestDev Jan 3 '18 at 1:19
  • can you advice more on my above comment please? – SharePoint TestDev Jan 5 '18 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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