Issue with Provider hosted event receiver - There was no endpoint listening at https://[localwebsite]/Services/AppEventReceiver.svc that could accept the message


hi,

 i created sharepoint provider hosted app , enabled event on handle app-in installed. wrote simple logic of adding item list on app installed. hosted service on local iis server , add-in app installed on sharepoint online. when try deploy app getting below error. can of please answer of how handle below error.

there no endpoint listening @ https://[localwebsite]/services/appeventreceiver.svc accept message. caused incorrect address or soap action. see innerexception, if present, more details.

public spremoteeventresult processevent(spremoteeventproperties properties)
        {
            spremoteeventresult result = new spremoteeventresult();

            using (clientcontext clientcontext = tokenhelper.createremoteeventreceiverclientcontext(properties))
            {
                if (clientcontext != null)
                {
                    clientcontext.load(clientcontext.web);
                    clientcontext.executequery();
                    listitemcreationinformation info = new listitemcreationinformation();
                    list listopportunities = clientcontext.web.lists.getbytitle("test");
                    listitem item = listopportunities.additem(info);
                    item["title"] = "test1";
                    item.update();
                    clientcontext.load(item);
                    clientcontext.executequery();
                }
            }

            return result;
        }


programmer analyst

hi,

here similar thread reference:

http://sharepoint.stackexchange.com/questions/58285/there-was-no-endpoint-listening-appeventreceiver

or check article below:

attaching remote event receivers lists in host web

https://blogs.msdn.microsoft.com/kaevans/2014/02/26/attaching-remote-event-receivers-to-lists-in-the-host-web/

best regards,

dennis


please remember mark replies answers if help.
if have feedback technet subscriber support, contact tnmff@microsoft.com



SharePoint  ,  Apps for Office and SharePoint  >  Developing Apps for SharePoint 2013



Comments

Popular posts from this blog

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Azure DocumentDB Owner resource does not exist

SQL Server 2008 - High Memory Usage