I use to follow the following approach to create remote event receivers and debug them using azure service bus https://blogs.msdn.microsoft.com/kaevans/2014/02/26/attaching-remote-event-receivers-to-lists-in-the-host-web/ , but currently it is no more working for us.

where i do these steps:-

  1. Inside Azure i created a new service bus, as follow >> i copied the primary connection string:-

  2. Inside the visual studio 2015 project >> Properties >> SharePoint >> i added the above service bus's primary connection string, as follow:- enter image description here

  3. I run the project >> where i got this message >> i select the list >> click on "Trust":- enter image description here

  4. I got the app showed the home page:- enter image description here

  5. I got the app added correctly inside my site content enter image description here

but the visual studio stop running and showed these 2 messages:-

One or more services were unregistered from the Microsoft Azure Service Bus. Cannot register Services/AppEventReceiver.svc on Microsoft Azure Service Bus: Unable to connect to the remote server

Here is a screen shot from VS:- enter image description here

so i am not sure what is going on ? why the service bus is not working?

here is my AppManifest.xml:-

<?xml version="1.0" encoding="utf-8" ?> <!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9--> <App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest"
>   <Properties>
    <UninstallingEventEndpoint>~remoteAppUrl/Services/AppEventReceiver.svc</UninstallingEventEndpoint> </Properties>

    <RemoteWebApplication ClientId="*" />   </AppPrincipal>   <AppPermissionRequests AllowAppOnlyPolicy="true">
    <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web/list" Right="Manage" >
       <Property Name="BaseTemplateId" Value="100" />
    </AppPermissionRequest>   </AppPermissionRequests> </App>

Your Answer

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

Browse other questions tagged or ask your own question.