Tuesday, January 22, 2013

Sharepoint - Part One

What is SharePoint ?
Microsoft has given this SharePoint, which is a browser based document collaboration platform. It is an application framework, and it is an application as its own. It is a platform where user can share Data, Collaborate and people can also take this platform and customized platform as per their requirements.

what is a web part?
Web parts consist of xml queries to full SharePoint lists or document libraries. You can also develop your own web parts and web part pages.

What are the advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)?
SharePoint Portal Services (SPS) has MUCH better document management. It has check-in, check-out, versioning, approval, publishing, subscriptions, categories, etc. STS does not have these features, or they are very scaled back. SharePoint Portal Services (SPS) has a better search engine, and can crawl multiple content sources. STS cannot. STS is easier to manage and much better for a team environment where there is not much Document Management going on. SPS is better for an organization, or where Document Management is crucial.

what is CAML?
CALM tands for Collaborative Application Markup Language and is an XML-based language that is used in Microsoft Windows SharePoint Services to define sites and lists, including, for example, fields, views, or forms, but CAML is also used to define tables in the Windows SharePoint Services database during site provisioning.

What are the types of input forms that can be created for a workflow ?
You can create four different types of input forms including
1. An association form
2. An initiation form
3. A modification form
4. A task edit form.

What are ways to create input forms for workflow ?
Two
1. You can create your forms by using custom application pages, which are standard .aspx pages deployed to run out of the _layouts directory.
2. Using Microsoft Office InfoPath 2007

what is MOSS ?
Microsoft Office SharePoint Server (MOSS) is the full version of a portal-based platform for collaboratively creating, managing and sharing documents and Web services.
In MOSS additional feature add that can not in WSS 3.0.

what is web part?and type
Web Parts are the fundamental building blocks for Share Point user interface, and with them we can build and integrate many different types of applications.In share point also be create custom web part using .oscx control
steps create custom web part

1.create web part project copied .oscx control and build application.place .dll file in GAC .reset IIS.
2.go 12 hive _layout folder create folder past your .oscx control
3.go inetpub ->wwwroot->wss->open Your site ->web con fig->create safe control write assembly information of web part application
4.open sharepoint site ->site action-site editing->Galleries ->web part->new Add your web part.
follow few web part in WSS 3.0
Content Editor Web Part

Data View Web Part
List View Web Part
Image Web Part
Members Web Part .
Page Viewer Web Part
how can debugging share point application and timer jobs ? with steps?
Steps 1:build application place .dll into gac and reset iis
steps 2:On the Debug menu, select Attach to Process
steps 3:select the Show processes from all users check box.
steps 4:select W3W.exe and OSWTIMER.exe can attach
steps 5:refresh sharepoint site point break point

What is Sandbox solution?
When user writing custom code then it is not trusted, its failure causses on entire site. So the sandbox solution concept is used. In that case program is only written for particular site & solution is uploaded in the same site. The solution size limit is decided at the time of site creation & if size increases or code showing bad performance then it is easy to administrator to stop the working of solution.

What is the difference between Sandbox solution & farm solution?
We can create sandbox solution for particular site but not for the entire site collection or farm. It is not applicable for farm solution. There are some restriction while creating the sandbox solution.

Why we use the properties.current.web instead of SPContext.Current.web in event receiver?
When we deploy project from Visual studio then we can use the SPContext.Current.web but when we use the powershell to activate or deactive the feature then we have to use properties.current.web beacuse there is no access of browser here.

Which are default master pages in Sharepoint 2010?
1. v4.master - This is default master page.
2. default.master - this is used to support the 2007 user interface
3. minimal.master
4. simple.master- it is used for accessdenied.aspx, confirmation.aspx, error.aspx, login.aspx, reqacc.aspx, signout.aspx & webdeleted.aspx pages.

What is the difference between CustomMasterUrl & MasterUrl?
MasterUrl is used to change the layout of all use end pages but CustomMasterUrl is for changing the layout of admin side pages.

What is SharePoint Delegate Control?
a. With the help of delegate control, we can take any OOB control of SharePoint and replace with our custom control without any modification in the SharePoint page. So that new custom control overrides the existing one.

b. So the delegate control provide one of the option to add control (either server control or user control) on a SharePoint page.

c. This is one of the important features of SharePoint, introduced in WSS v3 and so in MOSS 2007.

d. For example : In master page SearchBox control is included as

<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox" />

e. The above lines instantiate the delegate control object.

f. This delegate control object uses features to locate the control which is specified in ControlId. So there must be the features (it includes feature at any scope) which creates and deploys the SmallSearchInputBox control.
What are the zones in SharePoint?
1. Zones provides the separate logical paths of authentication for the same web application.

2. We can create 5 zones for each web application as follows :
a. Default
b. Intranet
c. Extranet
d. Internet and
e. Custom

3. Each zone represented by different web sites in IIS.


What is the Farm in SharePoint?
1. Farm is a collection of SharePoint servers having the same configuration database.

2. Configuration DB stores all the required information to run the farm.

3. Each farm is administered through a central administration

4. There is only one configuration database per farm.

What is WebApplication in SharePoint?
1. In SharePoint WebApplication is a IIS website.

2. From Central Admin we can create the web application. Each web application is associated with one IIS web site.

3. Once the web application is created, we can extend the web application in different zones.

4. For each web application, content database is created.

What is a Site Collection in SharePoint?
1. A site collection is a set of web sites.

2. Every site collection has top-level site, created when the site collection is created.

3. THere might be multiple site collections in web application and each site collection may have a multiple child sites.

How the WSS3.0 basic installation differs from the advanced installation?
1. When we choose the basic installation, Windows Internal Database(WID), a relational database based on SQL server technology, is installed for the WSS3.0 databases. This WID has only 4 GB limitations. While if we go for advanced search, WSS 3.0 uses installed SQL server for the databases.

2. When we use basic installation, application pool uses the LocalSystem account.

3. Also once we go for Basic installation, we are unable to add more servers to the farm.
How WSS 3.0 differes from MOSS 2007?
1. Windows SharePoint Services (3.0) are free available with Windows Server. Microsoft Office sharePoint Server (MOSS) 2007 is licensed version. WSS 3.0 can be freely downloaded from Microsoft site.

2. MOSS 2007 is based on WSS3.0 with some additional features like Enterprise Search, Business Data Catalog(BDC), User Profile, Excel Services, Single-Sign on, additional Workflows, My site feature etc.

What is CAML?
CAML is the collaborative application markup language. This is the XML-based language used to customize and to develop the sharepoint based sites and features.
What is the difference between Site Definition and Site template?
1. To create or use site definition you need server admin access, but site template can install from web UI by site owners.
2. Site definition supports feature stapling, but for site template additional features must be activated in gallery.
3. Site definitions are stored in hard disk, but site templates are stored in content DB.
4. Site definition can provision multiple webs, but site templates for single web only.
5. Creating site definition is relatively complex then site template creation.

What is BDC and how it is differ from BCS?
BDC (Business Data Catalogue) is use to connect an external database and view it in share point.
BCS (Business connectivity Services) is new in SharePoint2010. Using BDC one can only read from external Database, but using BCS one can read and write into the external Database.

What is Web part life cycle?
Web Part Life Cycle starts with
OnInit- to configure the webpart.
OnLoad- to load add controls.
CreateChildControls- It is use to create controls and set its property.
LoadViewState- The view state of the web part is populated over here.
OnPreRender- it is use to change the web part properties.
RenterContents- it generate the output in html.
OnUnLoad- to unload the web part.
Dispose- to free the memory.

How to Create a custom feature?
To create custom feature :-
Create xml file named feature.xml and its manifest file. Save it in a folder and save that folder in 12- hive \template\feature.
To install :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 installfeature –filename <filelocation+name>
To Activate :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 activefeature –name <name> -url <url>
To Deactivate :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 deactivefeature –name <name> -url <url>
To uninstall :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 uninstallfeature –filename <filelocation+name>

Explain the Share Point Architecture.
Having 3 layers, like 3 tire architecture
1. WFE <Front End Web Server>
2. Application Layer
3. Data base Layer

1. WFE :-
Here we have share point Installed.
We have 12-hive structure & virtual drives.
Here IIS web sites are hosted.
Here servers are clustered on & are in synch.

2. Application Lay er:-
Share Point provides different services.
This layer provides those services, like my site hosting, user profile & searching etc.
One server can be dedicated to particular service depend upon the scalability.

3. Data Base Layer :-
Here we have SQL server installed.
Here content DB is hosted.
For moss 2007, it is SQL server 2005. For Share Point 2010, it is SQL server 2008.
Here servers are clustered on & are in synch.

* Every layer has load balancer for control the traffic.

How to deploy wsp ?
In Command prompt, navigate to the 12-hive bin folder, then write the command to add the solution i.e.
Stsadm -o addsolution -filename filelocation

Then go to “central administration -> operations” under “global configuration” there is “solution management” click on that.

Then click on “wsp file name”, and then click on “deploy solution” for deploy it, for retrieve click on “retrieve solution”, for remove it click on “remove solution” after retrieve it.

How do you configure outgoing E-mail?
It is recommended that you set up a Local SMTP Virtual Server on your share point box and configure it to relay to your normal domain.

This will not only provide a natural queuing mechanism which would be highly preferred, but it will also provide you with what you need to set up incoming email as well as outgoing.

(DW)

More details on this ...

If you are looking to use your corporate email to read outbound email--you'll need to go to the SMTP Virtual server and set up a new domain in it. Click on domains and make a new remote domain. Type in the name of your corporate email (for me it would be Microsoft.com).

Once it's made, get the properties on it and configure the smart host to be the name of your actual mail server (exchange or whatever). This will cause the SMTP Virtual Server to relay mail addressed to your remote domain to your corporate email server.

If that server only accepts mail from authenticated sources, you'll have to configure the outbound security on the remote domain as well as the smart host.

(DW)

Note too the usual need to make sure that Port 25 is not blocked by an A-V software (McAfee being the typical culprit)

Client Object Model vs Server Object Model in SharePoint 2010 ?
using Client Object Model we can access the data from the system where sharepoint server is not installed on the machine via Web Services , API , JavaScript etc

Where as In Server Object Model is like a Production Server Environment to access the data where shapoint server installed on the machine .


How to Remove the Banner from InfoPath Form 2007 ?
Using Stsadm setformserviceproperty we can remove the banner from InfoPath form 2007 .
Ex: stsadm.exe -o setformserviceproperty -pn allowbranding -pv false

How to Synchronize the UserProfiles with Active Directory in MOSS 2007?
1. Log into the Shared Services Administration site
2. Click on User Profiles and Properties
3. Click on Configure Profile Import
4. Under "Source" select the domain you wish to import from
5. Under "Default Access Account" select either the default content access account or specify account details – this account must have permission to access the Active Directory users (default) OU container
6. Click OK
7. Now select either a Full or Incremental import, a Full import will ensure that users deleted from Active Directory are removed from the profile database
8. Once the import has finished you can select "View Import Log" to reveal details about the import

How to take IIS backup in SharePoint Server ?
Step1: Start --> Administrative Tools-->IIS Manager
Step2: Right Click on Computer Name --> All Tasks--> Backup/Restore
Step3: Click on Create Backup
Step4: Name the Backup File and make the backup file password protected
Step5: Done!!
Step6: Check the Backup file in C:\WINDOWS\system32\inetsrv\MetaBack it will be in 2 names .
Step7: to restore them Click on Restore option
What is Search Server and Search Server Express ?
SSX can only deploy on single server in the farm.you cannot add more than one server to make search high availability . Search server can be scaled in the same fashion as SharePoint Server providing high availability for search
When backing up a SharePoint 2010 environment, What are the tools that can be used ?
The tools that can be used while backing up a SharePoint 2010 environment are mentioned as 2 types as follows:
1) SharePoint farm backup and recovery
2) SQL Server
Explain about Content types in Sharepoint ?
A content type is a WSS type definition which is flexible and reusable. It is used to define the columns and behavior for an item in a list or a document in a document library.
For example, you can create a content type for a leave approval document with a unique set of columns, an event handler, and its own document template and attach it with document library/libraries.

Discuss the differences between a Site Definition and a Site Template ?
The differences between a Site Definition and a Site Template are discussed as follows:

Site Definitions are stored on the hard drive of the SharePoint front end servers, which are used by the SharePoint application to generate the sites users can create. Site Templates are created by users as a copy of a site they have configured and modified so that they do not have to recreate lists, libraries, views and columns every time they need a new instance of a site.

For a workflow, What are the types of input forms can be created ?
For a Workflow, you can create 4 different types of input forms which are given as follows:
1. An association form
2. An initiation form
3. A modification form
4. A task edit form.

Mention different products in SharePoint 2010 ?
There are 2 different products in SharePoint 2010.
They are
1) SharePoint Foundation 2010 which is a free version and
2) SharePoint Server 2010 which is a paid version.

No comments:

Post a Comment