Continuing from previous post.
Edit AppManifest.xml and replace url in "<InstalledEventEndPoint>" with dynamic token "~remoteAppUrl".
Edit AppEventReceiver.svc.cs and replace "ReceiverUrl = opContext" with "ReceiverUrl = remoteUrl".
Use following article to package, publish and install app to SharePoint 2013.
https://msdn.microsoft.com/EN-US/library/office/jj860570.aspx
You can skip "Configure the remote server with certificate" step as you can use the certificate "SPWeb.pfx" for binding which we have already installed to IIS in previous post.
If you are facing problem installing app, try enabling anonymous access on subfolder of app website at IIS level. e.g. so if your main website folder at IIS is called "AppWeb" and subfolder called "SPWeb" then enable anonymous access on "SPWeb" folder.
If your event receiver is not working after installing app then edit AppEventReceiver.svc.cs and provide full app website url for remoteUrl string. e.g.
stirng remoteUrl = "http://spweb/spweb/Services/RemoteEventReceiver1.svc";
Package and publish website again.
Edit AppManifest.xml and replace url in "<InstalledEventEndPoint>" with dynamic token "~remoteAppUrl".
Edit AppEventReceiver.svc.cs and replace "ReceiverUrl = opContext" with "ReceiverUrl = remoteUrl".
Use following article to package, publish and install app to SharePoint 2013.
https://msdn.microsoft.com/EN-US/library/office/jj860570.aspx
You can skip "Configure the remote server with certificate" step as you can use the certificate "SPWeb.pfx" for binding which we have already installed to IIS in previous post.
If you are facing problem installing app, try enabling anonymous access on subfolder of app website at IIS level. e.g. so if your main website folder at IIS is called "AppWeb" and subfolder called "SPWeb" then enable anonymous access on "SPWeb" folder.
If your event receiver is not working after installing app then edit AppEventReceiver.svc.cs and provide full app website url for remoteUrl string. e.g.
stirng remoteUrl = "http://spweb/spweb/Services/RemoteEventReceiver1.svc";
Package and publish website again.
No comments:
Post a Comment