Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have heard you can't have server side code in sharepoint hosted apps.

Does this mean you don't have access to feature and event receivers?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

What kinds of things would you be looking to do in a feature receiver for a SharePoint-hosted app? The app installation process handles deploying all the necessary resources (such as HTML/CSS/JS assets, site column/content type definitions, etc.) to the app web.

In terms of event receivers, you can create "Remote Event Receivers" in apps for SharePoint--just not in a SharePoint-hosted app. When you attempt to add a Remote Event Receiver to a SharePoint-hosted app project, Visual Studio will add a new web application project to the solution that includes a remote event receiver WCF service. Because a remote event receiver relies on a WCF endpoint to "remotely" handle the events being raised from SharePoint, and this WCF endpoint contains server-side code, by definition it cannot run in a SharePoint-hosted app. For more information, see this remote event receiver how-to on MSDN.

share|improve this answer
    
One of the purposes is setup permissions for a group. –  Alexander Sep 19 '13 at 7:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.