locked
Deactivate Sandbox Solution in Office 365 with no access to SharePoint UI RRS feed

  • Question

  • I have a sandbox solution custom action deployed to my Office 365 site. The custom action is a simple ScriptLink that points to a script. After I activated the feature, every page in the entire Site Collection comes back as a blank page. Every page. Site Settings, Solutions, List Settings, pages, lists, views.. you name it.. it's a blank page.  The entire page contents is:

    <html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" content="NOINDEX " /></head><body></body>

                    <script type="text/javascript">
                     var gearPage = document.getElementById('GearPage');
                     if(null != gearPage)
                     {
                         gearPage.parentNode.removeChild(gearPage);
                         document.title = "Error";
                     }
                     </script>
                     </html>

    Is there anyway for me to deactivate the Custom Action Sandbox Solution without having access to the SharePoint UI?  There doesn't seem to be a PowerShell cmdlet to deactivate a feature and I'm quickly running out of ideas.

    thanks for the help!

    Mark



    The SharePoint Hillbilly
    Fewer Big Words... More Pretty Pictures... http://www.SharePointHillbilly.com

    Tuesday, December 31, 2013 9:16 PM

Answers

  • Thanks Waldek, I ended up using Quest Migration Manager to copy the site contents to a new site, deleting the original site, and then recreating it. Lost some of my customizations but at least all the content is there. 

    Thanks again! Hope to see you at SPC!

    Mark


    The SharePoint Hillbilly&lt;br/&gt; Fewer Big Words... More Pretty Pictures... &lt;a href=&quot;http://www.SharePointHillbilly.com&quot; target=&quot;_blank&quot;&gt; http://www.SharePointHillbilly.com&lt;/a&gt;

    • Marked as answer by Patrick_Liang Sunday, January 12, 2014 2:50 PM
    Thursday, January 2, 2014 6:00 PM

All replies

  • Hi,

    According to your post, my understanding is that you want to deactivate a Sandbox solution feature in Office 356 without accessing to SharePoint UI.

    We can enable or disable a feature from PowerShell using Client Object Model in SharePoint Online.

    Here is an example for your reference:
    http://geeks.ms/blogs/lmanez/archive/2013/09/29/office-365-enable-disable-feature-from-power-shell-using-csom.aspx

    Best Regards


    Dennis Guo
    TechNet Community Support

    Wednesday, January 1, 2014 10:06 AM
  • Have you tried disabling JavaScript in browser and deactivating the Feature? This should remove the ScriptLink and should allow you to deactivate the Sandboxed Solution.

    w: http://blog.mastykarz.nl | t: @waldekm | c: http://www.mavention.com

    Wednesday, January 1, 2014 1:29 PM
  • Thanks for the suggestion Waldek, I gave it a shot but it didn't work. The server is not rendering the page at all so it's not even trying to execute the script in the ScriptLink.

    The SharePoint Hillbilly&lt;br/&gt; Fewer Big Words... More Pretty Pictures... &lt;a href=&quot;http://www.SharePointHillbilly.com&quot; target=&quot;_blank&quot;&gt; http://www.SharePointHillbilly.com&lt;/a&gt;

    Wednesday, January 1, 2014 4:46 PM
  • Interesting, I changed my MasterPage to the minimal master and now it's rendering the default error page with a correlation ID, but it still will not render the SharePoint UI at all on any of the pages.

    The SharePoint Hillbilly&lt;br/&gt; Fewer Big Words... More Pretty Pictures... &lt;a href=&quot;http://www.SharePointHillbilly.com&quot; target=&quot;_blank&quot;&gt; http://www.SharePointHillbilly.com&lt;/a&gt;

    Wednesday, January 1, 2014 4:59 PM
  • Unfortunately there is no way to remotely deactivate a Sandboxed Solution that I know of.

    One thing that you could try though is to create a custom Master Page and remove the Delegate Control with which you registered your Script Link. Perhaps that would allow you to deactivate the Sandboxed Solution.


    w: http://blog.mastykarz.nl | t: @waldekm | c: http://www.mavention.com

    Wednesday, January 1, 2014 5:57 PM
  • Thanks Waldek, I ended up using Quest Migration Manager to copy the site contents to a new site, deleting the original site, and then recreating it. Lost some of my customizations but at least all the content is there. 

    Thanks again! Hope to see you at SPC!

    Mark


    The SharePoint Hillbilly&lt;br/&gt; Fewer Big Words... More Pretty Pictures... &lt;a href=&quot;http://www.SharePointHillbilly.com&quot; target=&quot;_blank&quot;&gt; http://www.SharePointHillbilly.com&lt;/a&gt;

    • Marked as answer by Patrick_Liang Sunday, January 12, 2014 2:50 PM
    Thursday, January 2, 2014 6:00 PM