Skip to main content

Posts

Showing posts from March, 2011

How to backup individual page in Sharepoint 2007

I have been looking for a good way to backup all my pages along with their webpart configuration( i mean what kind of webparts they have) and the position of the webparts on the page, from a long time now. Even though, i didnt find any good way to do this, but for my urgent requirenment i followed a quick workaround.  So below are the two ways i followed to backup pages. Method 1- 1. Open the site in sharepoint designer and select(or (highlight) the page you want to backup. 2. Now, goto File -> export -> file -> Save As and save it to your local desktop. You can later upload it in your pages library or whereever your page is and select add a new version. Method 2 - The steps are : 1. Open the in the Sharepoint designer and select the page to backup. 2. Check out the Page and Detach it from the layout. 3. Opne the page and under File -> “Save as “ a copy. 4. Once done undo the checkout. For testing - 1. Now, add a new webpart on the original page. 2. Next, g...

Sharepoint 2010 Interview Questions & Answers.

Q) What are Web Applications in SharePoint? An IIS Web site created and used by SharePoint 2010. Saying an IIS virtual server is also an acceptable answer. Q) What is an application pool? A group of one or more URLs that are served by a particular worker process or set of worker processes. Q) Why are application pools important? They provide a way for multiple sites to run on the same server but still have their own worker processes and identity. Q) What are zones? Different logical paths (URLs meaning) of gaining access to the same SharePoint Web application. Q) What are Web Application Policies? Enables security policy for users at the Web application level, rather than at the site collection or site level. Importantly, they override all other security settings. Q) What is a site collection?  A site collection contains a top-level website and can contain one or more sub-sites web sites that have the same owner and share administration settings. Q) What are conte...

Sharepoint 2010 Interview Questions & Answers

Q. What is SharePoint 2010? Def : SharePoint 2010 is the business collaboration platform for the Enterprise & the Web that enables you to connect & empower people through an integrated set of rich features. Whether deployed on-premises or as hosted services, SharePoint 2010 helps you cut costs with a unified infrastructure while allowing you to rapidly respond to your business needs. Q. What Has Changed with 12 hive in SharePoint? Ans. Three New Folders have been added in 12 hive structure. • UserCode – files used to support sandboxed solutions . • WebClients – used for the client Object Model. • WebServices – .svc files . Q. How would you re-deploy the old custom solutions in SharePoint 2010.What Changes are needed to the old Solution files. Ans. SharePoint 2010 object model contains many changes and enhancements, but our custom code will still compile and, will run as expected. You should however, rewrite and recompile any code that refers to files and resources in...

Sharepoint 2010 Windows PowerShell Interview Questions & Answers

Q. How to list all the commands in PowerShell ? Ans . Get-Command * commands gets you all the Powershell commands. Q. What is Windows Powershell ? Ans. Windows PowerShell is a new Windows command-line shell designed especially for system administrators. In the SharePoint administration context, Windows PowerShell is another administration tool that supersedes the existing Stsadm.exe. Q. What are cmdlet's? Ans. Windows PowerShell introduces the concept of a cmdlet which are simple build in commands, written in a .net language like C# or VB. Q. Can you Create PowerShell scripts for deploying components in SharePoint ? Ans . If you are creating a webpart with VS 2010 then you can deploy it using ctrl + f5. However, to activate the webpart feature you can write a powershell script (.ps1) and execute it after dpeloyment. Q. Where is Powershell located in sharePoint ? Ans . On the Start menu, click All Programs -> Click Microsoft SharePoint 2010 Products -> Click S...

Trust level issue with tree view

I have created a webpart that display the treeview of document library and folders  can somebody please tell me I am having issues with sharepoint webparts not being resgistered as safe? Put DLL in Bin too, reset IIS and then check. If same error occurs then to put this attribute above the namespace. [assembly:AllowPartiallyTrustedCallers]

WebServices in Sharepoint 2007(MOSS 2007)

Create an ASP.NET web service in Microsoft Visual Studio 2005. There are two ways to do this. You can develop a web service on the server machine that hosts SharePoint or You can develop it on a remote machine that does not host SharePoint and later deploy the service on the machine that hosts SharePoint. Creating a Custom Web Service 1. The first step is to create an ASP.NET web service project in Visual Studio 2005 . If you don't find a web service project template in visual studio, that means that you are still running an old version of Visual Studio 2005, the one without the service pack. You will have to download and install the Visual Studio 2005 Service Pack 1 Beta from Microsoft here . It's a 371.9 MB download and let me tell you in advance that the installation is very slow and takes a lot of time. On the File menu, click New Project. 2. In the Project Types box, select Visual C#. 3. In the Templates box, select ASP.NET Web Service Application . 4. In the N...

Shared Service Provider Architecture and Shared Service Architecture

Shared Service Architecture(SSP) in MOSS 2007 Shared Service Architecture in SP 2010

Shared Service Applications in Sharepoint 2010

In SharePoint 2010 Shared Service Providers ( SSP's ) are replaced by Service Applications . Services are no longer combined into a SSP. Services are running independent as a service application. So in MOSS 2007: SSP: combines services like Search, Excel Services, User Profiles, ... into a shared service provider. In SharePoint 2010: Service Applications: services like Search, Managed Meta Data, .., your service (20 services in SharePoint Server) are running "unboxed" and independent. See The Figure.   SharePoint 2010 Shared Service Changes Firstly, and very importantly, SSPs are gone. The reasons for this include (a) SSPs grouped items that were not necessarily similar, (b) in SharePoint 2007, some users found it hard to deploy and manage SSP’s, (c) SSP’s didn’t necessarily scale to the nth degree (too many services in one DB) So, what’s replaced the SSP I hear you cry? Well, the new SP2010 concept is “Service Application” or “Service App”, whe...

Add and Edit Group Permissions in SharePoint 2007(MOSS 2007)

Adding and editing SharePoint group permissions is a central admin task which SharePoint makes very easy through the configuration of permission levels. If you have created a group in Sharepoint you will likely want to create some custom permissions for the group. 1. Central Admin>Select Site Settings > Advanced Permissions (alternatively click ‘Site Permissions’ in the far left column). 2. Click Settings > Permission Levels 3.Click Add Permission Level 4.Name the new permission level and configure the permissions using the checkbox listing and then click Create. 5 .Navigate to the Permissions page (you can easily do this using the ‘breadcrumbs’ navigation trail just above the page title). 6.The new permission you just created should now be visible in the Permissions listing and you can select it and click OK . Technically you can have more than two sets of permissions for a Sharepoint group but this is usually not best practice. It is far better to create a singl...

Configuring search in Sharepoint (MOSS 2007)

Prerequisites for configuration. The important one is the user account . More details use the link- http://technet2.microsoft.com/Office/en-us/library/f07768d4-ca37-447a-a056-1a67d93ef5401033.mspx?mfr=true SSP application pool security account Security account for the application pool that the SSP resides in. SSP service account Used by the following: •SSP Web services for inter-server communication •SSP Timer service to run timer jobs Office SharePoint Server Search Used as the service account for the Office SharePoint Server Search service. There is only one instance of this service and it is used by all SSPs. Default content access account The default account used within a specific SSP to crawl content. If a specific account is not specified for a content source, the default content access account is used. Content access account A specific account that is configured to access a content source. This account is optional and is specified when you create a new crawl ru...

Configuring Sharepoint Service Provider (MOSS 2007 SSP)

Configuring Sharepoint service provider is one of the important task when you are setting up a sharepoint server (MOSS 2007). more info: What are the prerequisites for configuration? The important one is the user account . More details use the link- http://technet2.microsoft.com/Office/en-us/library/f07768d4-ca37-447a-a056-1a67d93ef5401033.mspx?mfr=true The following steps will help you in creating and configuring SSP. Configuring the SSP (Shared Service Provider) 1. Start > Programs > Microsoft Office Server > SharePoint 3.0 Central Administration > menu from the application server. This will open SharePoint central administration site in internet explorer. 2. In SharePoint central administration site click on Shared Service Administration, this will open Share service administration page. 3. Click on New Shared Service Provider 4. Click on Create a new Web Application 5. Select Create a new IIS web site. 6. Give a Your Port number other than 80 7. S...

SharePoint 2010 Sandbox Execution flow

Before building solutions for the Sandbox you have to know how it actually works, that will also make you understand in more details why some things work and some don't. 1.The "real " Page object exists in the W3WP.exe process 2.The Sandboxed Execution Manager serializes information from the fully-trusted objects (see below) 3.The serialized is sent to the User Code Service (in the OnPageLoadComplete event). It can be on the same or a specific Sandboxed App Server 4.The User Code Service reuses or spins up a Sandbox Worker process and sends request to the worker process 5.The User Code Worker Process recreates a HttpContext and the Page object. 6.It then creates a Form, Web Part Manager and a Zone before it processes the page. 7.After processing the Sandboxed Page object it retrieves the Response, View State, Control State (execution depends on for instance it is a post-back, export of web part, edit web part etc) 8.Data is once serialized and sent back t...

SharePoint 2010 and web templates

More information on sharepoint 2010 Web templates To create the initial web template: Users create a web template by saving a website " as template " in the user interface (UI). This is also the easiest way for you as a developer to begin. In the UI, create a website of a type that is most similar to the custom site type that you are creating. Add or delete lists, Web Parts, and other Features as needed until the website matches your idea for a custom site type as closely as possible using only the Microsoft SharePoint Foundation UI and Microsoft SharePoint Designer. When you have the prototype website as close as you can get it to your custom site type, save it as a template on the Site Settings page. The web template is saved to the site collection's Solution Gallery. Do not use spaces in the template name. If you need additional customization that cannot be done in the UI, follow the steps in the procedure "To set up a Visual Studio project ." To se...

Resource Usage Restrictions on Sandboxed Solutions

Sandboxed solutions are also subject to three kinds of resource usage restrictions that can be categorized by (1) the sort of entity to which the restriction applies and (2) the sort of entity on which the penalty for exceeding the restriction is imposed. Per Request with the Request Penalized : There is a hard limit to how long a sandboxed solution can take to complete. This is 30 seconds by default. If a sandboxed solution exceeds the limit, the request (but not the sandboxed worker process) is terminated. (This limit is configurable, but only through custom code against the object model. The relevant parts of the object model are not available to sandboxed solutions, so no sandboxed solution can change the limit.) Per Request with the Process Penalized : There is a set of 15 resource additional resource limits that apply to requests. If a request exceeds one of them, the process (and all the sandboxed solutions running in it) is terminated. Per Day/Per Site Collection with the ...

Sandboxed solution cannot do

A SharePoint Server solution must contain the configuration file that is named manifest.xml, and may also contain additional configuration files and assemblies. If the solution will run in a sandbox, the assembly and configuration files are limited in what they can contain. The following list identifies the most common things that an assembly that will run in a sandbox cannot do . Connect to resources that are not located on the local server. Access a database. Change the threading model. Call unmanaged code. Write to disk. Access resources in a different site collection.   The manifest.xml file refers to feature files; feature files refer to element files; and element files contain feature elements. The only feature elements that are permitted in a sandboxed solution are: ContentType Field CustomAction Module ListInstance ListTemplate Receivers WebTemplate WorkflowAssociation PropertyBag WorkflowActions    

Comparison of sandboxed and farm solutions in Sharepoint 2010

Aspect Farm Sandbox Deployment process Add the solution, and then deploy it to the farm. Upload the solution to a site collection, and then activate it in the site collection. Who can deploy Farm administrator. If the solution contains an assembly, only a site collection administrator can deploy it. If the solution does not contain an assembly, a user who has full control at the root of the site collection can deploy it. Data access Unrestricted. The solution can only access content from the site collection in which it was deployed. Process the solution runs in Unrestricted IIS worker process, or whichever process the solution is deployed into. Separate worker process that has restricted rights. Code access security The solution developer can set the code access security policy when packaging the solution. Restricted. For more information, see Deploying a sandboxed solution Monitoring Not monitored. Monitored, and limited by quotas set by the farm administrator. Load balanc...

Managed Metadata Services in Sharepoint 2010

I would cover the new Managed Metadata Services in more detail, because as far as I'm concerned this is the most important new feature in SharePoint 2010. Managed Metadata Services will provide enterprise management of metadata terms and content types for SharePoint 2010.  This will allow organizations to share metadata taxonomies and terms across multiple SharePoint webs and site collections.  In addition, Microsoft is finally allowing content types to be shared across webs and site collections using the same service.   This will provide a much more unified view of data across the organization.  Different departments or groups may have their own site collections for managing their SharePoint application, but everyone in the organization can be using common content types and metadata.  This will make unified search and retention across the organization much simpler as common terms can be used to search from data across the enterprise. Managed Metada...

Creating Custom List Definition and Custom Content Type using VS 2008 (VSeWSS 1.2)

Project Requirement: Contoso Inc. is a BPO organization working on Medical Transcription. Information workers listen to the voice recordings and create text files based on those recordings. 3 Text files (test.txt, test2.txt, test3.txt) are given as sample    IT department of Contoso Inc. has implemented MOSS 2007 for their document management and back office solution. CTO wanted to store the above mentioned text files in special document libraries which will have following mandatory columns “ Patient Name”, “Attending Doctor”, “Patient Number” and “Date of Service”.   Once an Information Worker will complete typing the text file, he/she will upload the text file to any of these document libraries and afore mentioned metadata columns will be populated automatically by selecting the necessary values from the text file. Associated values for these columns are stored at the beginning of the text file (see sample ). Solution: We will create a custom content type including all ...