Office 365 - Public Site Functionality?

Aug 6, 2013 at 2:52 PM
Has anyone had any luck installing this on the Public Facing 365 site? I tried but I get this error:

Sorry, something went wrong.

This solution contains invalid markup or elements that cannot be deployed as part of a sandboxed solution. Solution manifest for solution '509d04e6-df5c-4b06-8b46-3787c36e5175' failed validation, file manifest.xml, line 10, character 4: The element 'Solution' in namespace '' has invalid child element 'TemplateFiles' in namespace ''. List of possible elements expected: 'FeatureManifests, ActivationDependencies' in namespace ''.

Looks like a basic Feature needs to be installed first, TemplateFiles?
Aug 7, 2013 at 1:53 PM

Unfortunately, I don't believe you'll be able to deploy this to an O365 SharePoint site.

O365 only allows for the use of sandboxed solutions.

This solution contains a visual Web Part, which are not allowed in sandboxed solutions.

Even if it did not contain a visual Web Part, the code that allows for the anonymous submission of a form makes use of SPSecurity.RunWithElevatedPermissions, which is not allowed in a sandboxed solution.

This solution can only be deployed as a administrator-approved farm solution which is simply not possible in an O365 environment.

If there is significant interest in this sort of anonymous form submission functionality for O365 sites, I can look into getting this sort of functionality working in a sandboxed solution.

Jacob Zweifel
Aug 7, 2013 at 2:12 PM
Thanks for the quick reply.

I did get some more testing done and ended basically where you've pointed out the limitations. However I was able to get anonymous list/ form submissions working on my office 365 public site. An InfoPath form would be much preferred of course.

I was able to get InfoPath working on my public site to submit forms, however a user has to be signed in or you see a message "You are not licensed to use InfoPath"..

I will PM you the website address so you can take a look if your interested. If I can be of any help feel free to ask, I could see this being very popular in the MS store if a solution was found. Or even an alternative to InfoPath on public sites allowing for more dressed up forms "ootb".