Archive for November 30, 2011

How to Resolve Activate disabled Sandbox solution in SharePoint 2010

This problem mainly occurs when you start to develop sandbox solution and upload you solution to fresh SharePoint farm, if you have already developed some sandbox solution and some admin is maintaining SharePoint farm, you may never come to such problem.

Situation was, I was able to add solution to my site and I was also able to see SharePoint WSP and all was looking great, but when I was going to activate it, it didn’t seem to work and it was showing me user right tooltip, which usually comes up when we have not enough permission to access anything.

I wonder about my permission and I doubled check my permission but there was not an issue, then after checking about other problem if there could be.. but nothing was there.

After google, I found that there was issue of service named “Microsoft SharePoint Foundation Sandboxed Code Service” required to start prior to activating any sandboxed solution. This service can be activated from Central admin ->System Settings ->Server -> Manage Service on Server-> Start Service  Microsoft SharePoint Foundation Sandboxed Code Service start

Reference: I found that useful information here

November 30, 2011 at 12:46 pm Leave a comment

Connected WebParts in SharePoint 2010

SharePoint has very cool features of connected Web Parts, It simply means that two different web parts are connected and they can share data between them.

In Connected Web Parts there are basically two things required at least, one is Consumer Web Parts and Provider Web Parts. Consumer Web Parts gets data from Provider Web Parts, and this data passing is usually done with use of interface.

Connected web parts are best when we have two different web parts and we want to change web parts activity based on external events happen in another web part exist in the same web page.

Here, MSDN contains very nice walk through for creating connected web parts.

In above article, two attributes plays role for connecting web parts

ConnectionProvider:

It should be attached to any one method which returns data, it does not necessary that it must have some value specified in the bracket, what so ever you write there will be displayed when you access web parts from SharePoint site.

ConnectionConsumer

It should be attached to any one method which gets data from another web part.

NOTE: when you use this connected web parts in Web Part page added in sharepoint, you will have option to connect with consumer web parts. But in case of default page you may require to turn to edit mode of your page and then click on edit of web part and then you will have this options of connecting to another consumer web part.

In above scenario it is assumed that firstly we have added both consumer and provider web parts in the page and then we will have option to connect web parts.

November 30, 2011 at 11:07 am Leave a comment


Archives

Categories

 

November 2011
M T W T F S S
« Aug   Dec »
 123456
78910111213
14151617181920
21222324252627
282930  

Blog Stats

  • 1,999

Follow

Get every new post delivered to your Inbox.