none
Problem in Developing/Testing my Remote Event Receiver inside Visual Studio 2015 RRS feed

  • Question

  • I am trying to figure out how i can develop and test remote event receivers for my sharepoint online site collections, using local IIS. i tried these 3 approaches without having things working as expected.

    First Approach. I did the following:-

    1. inside our sharepoint online tenant, i create a new developer online site collection.

    2. using Visual Studio 2015 i create a new Provider Hosted App, for sharepoint online.

    3. then i change the handle Add-in Installed and Handle Add-in Uninstalling from False to True.

    4. this have added a new service (named AppEventReceiver.svc), where i added the related code for my Remote Event Reciever.

    5. then i chnaged the AppManifest.xml to be as follow:-

    6. then i run my project inside VS, where i got this message to trust the addin:-

    7. after that i got this message, i click on OK:-

    8. where the addin start installing, but after around one minute i got this error inside visual studio:-

    "Error 1
            CorrelationId: 6*****7
            ErrorDetail: The remote event receiver callout failed.
            ErrorType: Transient
            ErrorTypeName: Intermittent
            ExceptionMessage: There was no endpoint listening at https://localhost:44369/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.
            Source: Common
            SourceName: Common App Deployment

    Now i think this error is related in a way or another that i did not specify Azure Service Bus connection string inside (Project >> Properties >> SharePoint):-

    and in our case we do not have Azure Service Bus, and we are not planning to get one,i know i can create free Azure account for 30 days, but we are not planning to do so at this stage.

    Second Approach. I read how i can deploy Provider Hosted apps on local IIS for testing purposes, as mentioned on these 2 links:-

    http://bishwadebdey.blogspot.sg/2016/01/step-by-step-creation-of-provider.html

    http://www.sharepointpals.com/post/Step-by-Step-Procedure-to-Create-a-Low-Trust-Provider-Hosted-App-for-Office-365-and-Host-the-AppWeb-in-Local-IIS

    so i follow these steps, of hosting the Provider hosted apps on local IIS and using self-signed certificate, but when i wanted to add the Addin inside my developer site collection, the App did not get installed and it showed this error-

    So i am not sure how i can fix this, and have my Remote Event Receiver working well inside Visual Studio ?

    In other words if i do not have Azure Service Bus OR i do not  have a real certificate (not self-signed) certificate,, then is there a way i can run my Provider Hosted App (which contain the remote event receiver) inside visual studio, for testing and development purposes ?


    Third Approach. now as mentioned in this link

    https://sptechjournal.wordpress.com/2015/07/26/sharepoint-2013-hosting-remote-event-receivers-in-iis/

    to overcome this error which i am facing, when adding the addin

    The remote event receiver callout failed. Details: Could not establish trust relationship for the SSL/TLS secure channel with authority 'localhost'

    i need to use the Full qualified computer name inside my AppManifest.xml, so i did so ,and i reploy my app, then i try to add the addin inside my site collection, now the certificate error has gone, but i am facing this error, when the addin is being adding:-

    The remote event receiver callout failed.
    Details: There was no endpoint listening at https://*****.intra/***Web/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.
    as follow:-

    although when i accessed the url mentioned in the error i got this:-


    Side note.My Full qualified computer name url is not exposed to the internet.
    • Edited by johnjohn11 Thursday, January 25, 2018 1:30 AM
    Wednesday, January 24, 2018 10:25 PM