About Me

My photo
a Dynamic and Energetic guy.....

Wednesday, July 18, 2012

Change FARM account in SharePoint 2010

When we have to change FARM admin account password or change the account,

We can use stsadm command (updatefarmcredentials)

in SharePoint 2010 we have all these options as precautions







SharePoint On Cloud in Office 365

 











Nice, now We have created SharePoint online portal.










Tuesday, July 17, 2012

Create a SandBox Solution in SharePoint 2010

1. Open VS SharePoint project and Add a WebPart (we can't add a "Visual WebPart" for a SandBox Solution)






2. Add a simple code within "CreateChildControls" method
build the solution, then "Package" the solution to create a ".wsp" file

3. Go to "Site Settings" --> "Solutions"

4. Upload the "Solution"  (.wsp file)
but "Activate" button is disabled :(

5. So go to Central Administration --> "Services on server"
Start "Microsoft SharePoint Foundation Sandboxed Code Service"


6.Now "Activate" the solution

7. Verify whether the created item is listed under "WebParts" section (Site settings)
8. Add our WebPart to a page
 
9. Deactivate "Solution" when task is done / no longer needed

10. If any case start "SharePoint 2010 User Code Host" service


If can't find the error, set CALLSTACK =TRUE in related web.config file and click "Activate" button.





Thursday, July 12, 2012

What is a Sandbox Solution in SharePoint 2010

The basic architecture of a SANDBOX solution.

The compatibilities of SANDBOX solution


Item Template
Sandbox Compatible
Notes
Visual Web Part
No
Requires ASCX file be 
installed on SharePoint Servers
Visual Web Part (Sandboxed)
Yes
Provided by installing the 
Visual Studio 2010 SharePoint Power Tools
Web Part
Yes

Sequential Workflow
No
Requires workflow 
solution be deployed as Farm Solution
State Machine Workflow
No
Requires workflow 
solution be deployed as Farm Solution
Business Data Connectivity Model
No
Requires BCS solution be 
deployed as a full-trust solution; 
feature not supported in SharePoint Online
Application Page
No
Requires ASPX page be 
deployed to SharePoint Server
Event Receiver
Yes

Module
Yes

Content Type
Yes

List Definition from Content Type
Yes

List Definition
Yes

List Instance
Yes

Empty Element
Yes

User Control
No
Requires ASCX file to be 
installed on SharePoint Servers


The main things we can package with a SANDBOX solution

1.      Web Parts
2.      Event receivers
3.      Feature receivers        
4.      Custom Microsoft SharePoint Designer workflow activities
5.      Microsoft InfoPath business logic

Limitations

1. User must be a site collection administrator to deploy a sandbox solution
2. Sandbox assemblies run under separate service (SPUserCodeV4)
3. Default CAS (No file access, no web service calls, limited access to SharePoint object model)
4. No support for “Visual WebParts” (ie. No support to “Microsoft.SharePoint.WebPartPages.WebPart”. It is only support to System.Web.UI.WebControls.WebParts)

My Masters