Sandboxed Solutions in SharePoint 2010
This topic describes how site collection administrators can install, uninstall, and upgrade sandboxed solutions.
Installing a Sandboxed Solution
Just as with a farm solution, there are two steps to installing a sandboxed solution. In the context of sandboxed solutions, these two steps are called uploading and activating.
- Upload stage: The upload stage consists of uploading a sandboxed solution to the solution gallery of a site collection. This parallels adding a farm solution.
- Activation stage: The activation stage occurs after the solution is uploaded to a solution gallery. When a solution is uploaded, it is still functionally inert. Activating the solution makes it operate within the site by deploying files, registering event receivers, and running solution validation. This parallels deploying a farm solution. If a sandboxed solution includes a Feature that is scoped to the site collection level, the Feature is automatically activated when the solution is activated.
A sandboxed solution is installed by a site collection administrator to the site collection's solution gallery. This gallery also shows the current resource usage, average resource usage over the past two weeks, and the status of each sandboxed solution. For more information about the resource usage and monitoring system for sandboxed solutions, see Resource Usage Limits on Sandboxed Solutions in SharePoint 2010.
The following are the steps a site collection administrator takes to install a sandboxed solution.
To install a sandboxed solution
- From a page in the site collection, click Site Actions, and then select Site Settings.
- On the Site Settings page, click Solutions under the Galleries heading.
- On the Solutions tab of the Server ribbon, click Upload Solution.
- In the Upload Solution dialog box, click Browse, and browse to the sandboxed solution package (.wsp file). Click Open.
- The solution package is now in the site collection's solution gallery, but it is not yet deployed.
- In the Activate Solution dialog box, click Activate to activate the solution.
Uninstalling a Sandboxed Solution
There are also two steps to uninstalling a sandboxed solution.
- Deactivation stage: A site collection administrator can deactivate a sandboxed solution from the site collection's solution gallery. Deactivation reverses most of the deployment actions of activation and, thus, turns off various capabilities of the solution. (If a solution that contains a Web Part is deactivated after the Web Part is added to a page, the Web Part displays an error instead of the usual information contained in the Web Part. The Web Part does not entirely disappear because deactivation does not undeploy the Web Part's .webpart file.)
- Deletion stage: The deletion stage occurs when an administrator chooses to delete a sandboxed solution from the solution gallery. When the administrator chooses to delete a solution, additional validations and checks occur to warn the administrator of the negative consequences of an unintended deletion. A sandboxed solution cannot be deleted if it is still activated. When a sandboxed solution is deleted, it is moved into the Recycle Bin and can be restored or deleted permanently from the Recycle Bin.
Upgrading a Sandboxed Solution
A site collection administrator upgrades a sandboxed solution by installing a new sandboxed solution package (.wsp file) that has the same solution ID as the existing sandboxed solution but a different hash code.
If the sandboxed solution contains any Features, feature upgrade actions are also processed: During upgrade, the Feature definitions for the existing solution are compared with the Feature definitions for the new solution. Existing Feature definitions are upgraded on the site. All new Feature definitions are activated on the site. (Incoming requests for the sandboxed solution fail during the upgrade process.)
How to Install a software update for SharePoint Foundation 2010
Recently we encountered some issues with the SharePoint updates. Even though the previous update procedures may be quite successful you may somehow find new or additional issues after the updates. Please see the below link from Technet explains the procedures for various SharePoint Server 2010 updates.
Click Here to see the Procedure for Updates
Event ID 3351-Login failed for user ‘NT AUTHORITY\ANONYMOUS LOGON’
Today 01/04/2011, as part of my monthly checks, I noticed a whole bunch of 3351 errors in the event log on the SharePoint front end web server.
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Database
Event ID: 3351
Date: 1/4/2011
Time: 12:44:45 AM
User: N/A
Computer: MOSSSERVER
Description:
SQL database login failed. Additional error information from SQL Server is included below.
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
Resolution: First I started to check the application pool account of the portal site and found they were all set as defined. After a thorough investigation found that the Windows SharePoint Services VSS Writer account is running as local system account. Changed the account to the AD Farm Account and found that the issue is resolved.
Disable “Delete this site” option in SharePoint
There were many a times some of our users always want to test us whether we had a good backup of SharePoint Sites and Data. Traditionally speaking even though you have all the backups required to restore a SharePoint Site, it makes sense to disable the option to delete the site in first place.
So how can we do this?
Sure. There are a couple of options for deployment. The best one is to package this feature into a Solution Package (wsp). There are plenty of articles on the web with instructions on how to do this, and there are a number of different methods and tools you can use.
Also I think this would be one of the Best practices which will save tons of time for the Administrators trying to restore a single site or subsite in SharePoint
However, the quickest and easiest (to explain) way to get this deployed is to create the feature manually, as follows.
Don’t Miss DC’s Biggest SharePoint Saturday Event in May! It’s FREE!
I hope you’re having a great week! It’s a little over 3 weeks and it’s SharePoint Saturday DC! We’d like to update you on what we were doing to prepare for this major event on May 15:
Venue has been finalized and it’s confirmed that we can fit 1200 people
Sponsors have been confirmed and finalized
There will be around 89 speakers and 84 sessions that will be delivered
Raffle prizes include Apple iPad, Netbook, Zune HD, SharePoint books, training passes, Access to online content from Microsoft’s SharePoint Conference 2009, and many more!
WE NEED YOUR HELP to spread the word about SPSDC and make sure people know about this event. So if you can, pls. contact at least 1 person via email/IM/facebook/twitter/linkedin/blog with the following message:
--------
SUBJECT: Don’t Miss DC’s Biggest SharePoint Event in May! It’s FREE!
BODY:
Hi!
I’d like to invite you to SharePoint Saturday DC on May 15. SharePoint Saturday DC is a FREE, community driven, 1-day event that provides education around SharePoint at all levels.
You wouldn’t want to miss this event as there will be around 89 speakers and 84 sessions that will be delivered. Touted as the biggest SharePoint event in Washington, DC right after SharePoint 2010 is launched, 800 people are expected to attend. Get to network with SharePoint experts and get a chance to win raffle prizes such as Apple iPad, Netbook, Zune HD, SharePoint books, training passes, Access to online content from Microsoft’s SharePoint Conference 2009, and many more!
So what are you waiting for? Register now http://bit.ly/spsdc3
-------------
Let us know if you have any questions! Looking forward to see you on May 15!
Give People a Reason to Visit
People will only visit SharePoint and use it as a primary information source when the pain of accessing the information any other way is greater than accessing it through SharePoint. Giving people a reason to visit, then, may be as simple as providing up-to-date information, access to common forms, automated information routing and providing access to information that simply cannot be found elsewhere.
Is SharePoint 2010 Relevant?
FAST Search User Group Meeting-NYC, April 14th 2010
“Task has been Changed” Email Alerts
Today I have been banged with so many calls that the users were receiving the "TASK HAS BEEN Changed email alerts in their inbox every night. This is a kind of very frustrating situation to the users who already completed the tasks and still they get the emails that the task has been changed, task has been modified.
The biggest disadvantage of SharePoint Task lists is they send Task has been changed mail when ever a task Item is Changed. This is very strange as no one made any changes to the tasks.
I have been using SharePoint Manager for quite some time to manage my daily activities and its been of immense help...
As we all know that when a task list is created all the alerts " Task has been Changed", "Task has been deleted" and "Task has been Assigned"were automatically created. Now I checked to see If I can remove the email alerts and retain only the Task has been assigned to......
Also what I noticed was that all the Tasks were last modified by the System Account...
Looks like a bug in the task lists alerts notifications that were automatically generated ......