Sandbox Solution (1)

http://msdn.microsoft.com/en-us/magazine/ee335711.aspx

A SharePoint solution is a deployable package that can contain features and assemblies. The solution package is a .cab-based file with a .wsp extension.

Site collection administrators now have the authority to upload, activate, delete, and manage sandboxed solutions using the new Solution Gallery, which is a repository of sandboxed solutions.

Solution Gallery = Sandbox Solution

Solutin Gallery also helps monitor solution’s usage against a resource quota. The Solution Gallery is simply a standard SharePoint list that stores the .wsp file. It is located under the _catalogs folder at _catalogs/solutions

Deploying a sandboxed solution to the site collection is as simple as uploading the .wsp file to the gallery and activating it. You can deploy a solution from VS 2010, or manually upload it from using the Upload button:

***** Next, you are prompted to activate the solution (after you upload the solution). If the solution has site collection features, they will be activated; if there are site-level features, you have to go to each site to activate them, in the Manage Site Features.

You can delete a solution from the gallery only after you have deactivated it. If you want to copy a solution from one site collection to another, save the .wsp file to disk and upload it to another Solution Gallery.

You can also use new solution and feature upgrade infrastructure features in SharePoint 2010 to upgrade sandboxed solutions.

***** Upgrade a solution (that easy? Hmmm….) (In this case, the new version supercede the old version (the old version is deactivated)

To upgrade a solution, you need to
(1) Open your project in Visual Studio and make the changes,
(2) after which you can change the package name by using the package designer.
(3) Double-click the Package node in your solution to open the package designer, and then change the name of the package.
(4) You can now upload the sandboxed solution package as you would a new package.
(5) SharePoint detects that a package with the same solution ID is installed and prompts you to upgrade.
(6) After you upgrade, you’ll see that the new version is activated and the old version deactivated
(7) If you browse to the Web Part installed by the solution, you can see the new version running.

 

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: