I develop a provider-hosted app for our SharePoint 2013 on-premise environment, which has an app installed
event receiver.
Is there any way to develop an app, which includes event receivers on a local client (which is not the SharePoint server)?
Until now, I made my developments on the server itself over a RDP connection. Now I want do develop on my local client, which should be no problem in general.
But - because the app has an event receiver - of course an error occurss:
ErrorDetail: The remote event receiver callout failed.
ExceptionMessage: There was no endpoint listening at https://localhost:44301/Services/AppEventReceiver.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
This makes sense, the SharePoint server tries to call a webservice on localhost, but the web service is running on my local client, not on the server.
At the moment I do not want or need to debug the remote event receiver, I just want to get the application working.
I tried to change the ~remoteAppUrl
in the <InstalledEventEndpoint>
to the url of the currently deployed productive version, but it doesn't work (different ClientId etc)...
Currently the workaround to continue developing on the web app itself is to disable all event receivers, which is difficult if the event receiver make important things.