Thursday, 25 August 2011

Can upload Multiple Max Mb files and unable to upload single files

upload using single upload failed, multiple upload works  :

Increase the maximum upload  size

1. Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration.

2. Under Virtual Server Configuration, click Configure virtual server settings.

3. On the Virtual Server List page, click the virtual server you want to change.

4. On the Virtual Server Settings page, under Virtual Server Management, click Virtual server general settings.

5. Under maximum  upload size, type the maximum file  size (in MB) that you want to allow to be uploaded.

6. Click OK.

If IIS is timing out when you upload large  files, you can configure the Connection timeout setting in IIS to allow more than the default 120 seconds (2 minutes).

Tune the IIS connection timeout

1. Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.

2. Right-click the virtual server you want to configure, and then click Properties.

3. Click the Web Site tab.

4.In the Connections section, in the Connection timeout box, type the number of seconds you want IIS to wait before timing out.

5. Click OK.

Wednesday, 24 August 2011

IIS Stopped Automatically in sharepoint

  1. Log on to the server that hosts the service, application pool, or Web site.
  2. Click Start, click Administrative Tools, and then click Computer Management.
  3. In the navigation pane, expand Services and Applications.
  1. Perform one of the following steps based on what element you want to stop or start:
  2. For a service, click Services, right-click the service, and then click Stop or Start.




  • For an application pool, click Internet Information Services (IIS) Manager, expand the local computer, and double-click Application Pools. Right-click the application pool, and then click Stop or Start.

  • For a Web site, click Internet Information Services (IIS) Manager, expand the local computer, and double-click Web Sites or Sites.

  • If the server is running Windows Server 2003, right-click the Web site, and then click Stop or Start.
    If the server is running Windows Server 2008, right-click the Web site, point to Manage Web Site, and then click Stop or Start
    .

Tuesday, 9 August 2011

Backup(Import and Export) Using STSADM command for sitecollections and webapplications

When you back up by using the Stsadm command-line tool, you can back up individual aspects of your SharePoint Products and Technologies deployment. For example, you can back up an individual site collection or you can back up the entire farm.

To export sites from your SharePoint Products and Technologies deployment, you use the following Stsadm command.

Syntax :- Stsadm –o export –url <URL> -filename <FileName>.cmp

To back up a site collection, you must use the following stsadm command.

Syntax :- stsadm –o backup –url <URL of the site collection> -filename <Name of the backup file>

To back up an individual database, Web application, or the entire farm, you can use the following Stsadm command.

Syntax :- stsadm –o backup –directory <UNC path or local drive> -backupmethod <Full or Differential>



Restore

To import sites to your SharePoint Products and Technologies deployment, you use the following Stsadm command.

Syntax :- Stsadm –o import –url <URL> -filename <FileName>.cmp

To restore a site collection, you must use the following Stsadm command.

Syntax :- stsadm –o restore –url <URL of the site collection> -filename <Name of the backup file>

To restore an entire farm you can use the following Stsadm command.

Syntax :- stsadm –o restore –directory <UNC path or local drive> -restoremethod <overwrite or new>


Friday, 5 August 2011

Target a webpart to audience

Target a Web Part to an audience

Microsoft Office SharePoint Server 2007 Web Parts can be targeted to appear only to people who are members of a particular group or audience.
An audience can be identified by using a SharePoint group, a distribution list, a security group, or a global audience.
  1. On the Web page that contains the Web Part, on the Site Action menu menu, click Edit Page.
  2. On the Web Part, click the Web Part menuWeb Part Edit Menu , and then click Modify Shared Web Part.
  3. Under Advanced, add one or more audience names to the Target Audiences list.
When the page is rendered, the Web Part appears only to the people who are members of the audiences you specified.

How to Enable Audience targetting

Step 1: Enable audience targeting on the list or library

When you enable audience targeting on a list or library, you can target each item in the list or library to an audience.
 Note   If the SharePoint list or library already is enabled for audience targeting, the Target Audiences column appears.
  1. Click the list or library that contains the item you want to target.
  2. On the list toolbar, click Settings, and then click List Settings or Document Library Settings.
  3. Under General Settings, click Audience targeting settings.
  4. Select the Enable audience targeting check box.

Step 2: Specify the target audience on the items

After you enable the list or library for audience targeting, you can set individual items in the list or library to be displayed to one or more audiences.
  1. Click the arrow next to the name of an item in the list or library, and then click Edit Properties.
  2. In the Target Audiences list, add one or more audiences.
 Note   If content approval or workflow is enabled on the list or library, the item may need to go through the approval process.

Step 3: Display the item in a Web Part

To display the list or library item to a specific audience, you can use the Content Query Web Part. The Content Query Web Part allows you to build a query that can filter list and library items.
This example shows you how to display all of the the items from a specific list to a target audience. The list type is document library.
Find links to more information about other settings in the Content Query Web Part in the See Also section.
  1. On the page where you want to display the item, on the Site Actions menu menu, click Edit Page.
  2. Click Add a Web Part, and then under Default, click Content Query Web Part.
  3. Click Add.
  4. Click Edit and then click Modify Shared Web Part to open the tool pane (tool pane: A task pane on a Web Part Page used to browse, search for, and import Web Parts from Web Part galleries, and to modify custom and common Web Part properties.) for the Web Part.
  5. In the tool pane, under Query, click Show items from the following list and then specify the location of the list.
 Note   In this example, we specify a particular list. You can broaden the scope to include items in lists from more than one site by clicking one of the other options.
  1. Under List Type, choose the type of list that the item is a member of. In this example, click Document Library. Only items in the list type that you choose are processed by the query.
 Note   This setting is required.
  1. Under Audience Targeting, do the following.
ToDo this
Display the list items to the target audience that you specified in Step 2: Specify the target audience on the items, when the current user is a member of the audience.Select the Apply Audience Filtering check box. This is required for the query to work properly.
Also display the items in the list that do not have a target audience specified. These items are displayed to everyone.Select the Include items that are not targeted check box. This is optional.
When the page is rendered, the content in the Web Part appears only to current users who are members of the audiences you specified.

Back up by using STSADM Command

STSADM Backup Syntax

For site collection backup
stsadm -o backup
   -url<URL name>
   -filename<file name>
   [-overwrite]
For catastrophic backup
stsadm -o backup
   -directory<UNC path or local drive>
   -backupmethod<full or differential>
   [-item]<created path from tree>
   [-percentage]<integer between 1 and 100>
   [-backupthreads]<integer between 1 and 10>
   [-showtree]
   [-quiet]

How to create backup file automatically and create auto schedule

Batch File

Create a batch file, use Notepad to enter the below script and save as “Backup_Script.bat”.
This script creates daily backup of a site collection. A new backup file will be created each day and the file name is auto generated concatenating the current system date.
The script does the following
  1. Determine the lock status
  2. Locks the site collection
  3. Creates a file name using current date
  4. Creates backup
  5. Unlock the site collection
@echo off
@echo--------------------------------------------------------
@echo backing up site collection <URL of SiteCollection>
@echo--------------------------------------------------------
cd \Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
@echo locking site collection before the backup process starts
@echo off
stsadm -o getsitelock -url <URL of Site Collection>
stsadm -o setsitelock -url <URL of Site Collection> -lock readonly
@echo Site locked

@Echo Generating File Name using current date
@For /F "tokens=1,2,3 delims=/ " %%A in ('Date /t') do @(
Set Day=%%A
Set Month=%%B
Set Year=%%C
Set All=%%C%%B%%A
)

@echo off

stsadm -o backup -url <URL of Site Collection> -filename "C:\Backup\Backup_ All%.bak"
@echo backup completed
@echo off
stsadm -o setsitelock -url <URL of Site Collection> -lock none
@echo Site lock removed
Note: Replace “<URL of Site Collection>” with your site collection URL. Also I’ve used a folder named “C:\Backup” change it to your respective folder.

Windows Scheduled Tasks

Create a new Windows Scheduled Task by navigating Start > Control Panel > Scheduled Tasks > Add Scheduled Task. The following screen shows the Windows Scheduled Task Wizard.
image001.jpg
Click the Browse button and select the backup batch file (Backup_Script.bat). Click on Next to schedule the backup. The screen below shows the available options for scheduling a task.
image002.jpg
Select the convenient time to take the backup. It is better to choose low traffic hours for backing up a site.
image003.jpg
Once the time schedule has been selected, click on Next and supply the credentials to run the task. The account which is used for executing the task should have the Administrative permission. Click Finish to complete the wizard. Now a daily backup has been scheduled, the Task Scheduler will execute the batch file daily at specified time.

Wednesday, 3 August 2011

How to edit Content Editor Web Part with HTML Text editor in SharePoint 2010

Adding Content Editor Web Part in SharePoint 2010
Editing Tools | Insert | Web Part


Adding Web Part in SharePoint 2010

Under categories go to media and content to add SharePoint 2010 content Editor web part
Categories | Media and Content |  Content Editor
Media and Content, Content Editor Web Part

Click Add to insert Content Editor Web Part in SharePoint 2010 page
Adding Content Editor in SharePoint 2010
Your web part will say “ Edit this web part to add content to your page”  Click on Content Editor Menu and go to Edit Web Part 
Click on Content Editor Menu and go to Edit Web Part
As soon as you click on Edit Web Part, the message in Content Editor web part changes to “ Click here to add content” 
Now you can click on HTML under Format Text and click on Edit HTML Source
image
Editing HTML Source in SharePoint 2010 content Editor Web Part
Editing HTML Source in SharePoint 2010 content Editor Web Part
In HTML Source Editor you can input your HTML source.  This is how you edit Content Editor Web Part to add html source in SharePoint 2010
image

How to add webparts in sharepoint step by step

Step 1 – Uploading the Web Part in SharePoint
  1. Make sure you are logged into SharePoint as the site administrator.
  2. Navigate to the parent site1.
  3. Go to Site Actions - Site Settings. SP2010_Webpart_1
  4. Under Galleries, click on Web Parts . SP2010_Webpart_2
  5. Go to Library Tools Documents- Upload Document. SP2010_Webpart_3
  6. Click on Browse. SP2010_Webpart_4
  7. Select the file you wish to upload and then click on Open. SP2010_Webpart_5
  8. Click on OK. SP2010_Webpart_6
Step 2 – Adding the Web Part to a page
  1. Navigate to the page where you want to install the Web part.
  2. Go to Site Actions - Edit Page. SP2010_Webpart_7
  3. Click on Add a Web Part where you want to install the new part. SP2010_Webpart_8
  4. In the Web Part list, select the part you want to install and then click on Add. SP2010_Webpart_10
If you need further assistance, please do not hesitate to contact us.

Foot notes

  1. The top-level site is called a parent site and the subsites built within it are called child sites

Tuesday, 2 August 2011

How to Enable Media Webpart in sharepoint

Sharepoint 2010 – Enable Media Web Part

some configurations need to be done to enable media web part in sharepoint 2010.
step to configure
  1. Site Actions
  2. Site Settings
  3. Site Collection Administration
  4. Site collection features
  5. Activate SharePoint Server Publishing Infrastructure
  6. After activation, click back button return to Site Settings
  7. Manage Site Features
  8. Activate SharePoint Server Publishing
  9. Supports WMV file to play the video.

Add/change/delete Site directory category

Add a new category to the Site Directory

  1. On the Top Navigation bar, click Sites to open the Site Directory.
  2. In the Site Directory, click the Site Actions menu, click Edit Page.
  3. In the Categories section, click Create New Category.
  4. On the Create Column page, type a name for the new category in the Column name box, ensure that the Choice option is selected, select additional category settings as needed, and then type the choices you would like to see under the category heading.
  5. Make sure that the Add to default view checkbox is selected, and then click OK.
  6. On the Customize Sites page, in the Views section, click Categories.
  7. In the Columns section, arrange the columns by selecting options in the Position from Left list, and then clickOK.
  8. On the Top Navigation bar, click Sites to return to the Site Directory, and then click Publish.

Change categories in the Site Directory

  1. On the Top Navigation bar, click Sites to open the Site Directory.
  2. In the Site Directory, click the Site Actions menu, and then click Edit Page.
  3. In the Categories section, click Edit Sites and Categories.
  4. On the Sites page, click the Settings menu, and then click List Settings.
  5. On the Customize Sites page, in the Columns section, click the category name that you want to change.
  6. On the Change Column page, make the changes that you want, and then click OK.
  7. On the Customize Sites page, in the Views section, click Categories.
  8. On the Edit View page, if the Make this the default view check box is displayed, ensure that it is selected, and then in the Columns section, make sure that the check box for the column (category) that you changed is selected and is correctly positioned in the Position from Left list.
  9. Click OK to return to the Customize Sites page.
  10. On the Top Navigation bar, click Sites to return to the Site Directory, and then click Publish.

Delete a Site Directory category

  1. On the Top Navigation bar, click Sites to open the Site Directory.
  2. In the Site Directory, click the Site Actions menu, and then click Edit Page.
  3. In the Categories section, click Edit Sites and Categories.
  4. On the Sites page, click the Settings menu, and then click List Settings.
  5. On the Customize Sites page, in the Columns section, click the category name that you want to delete.
  6. On the Change Column page, scroll to the bottom of the page, and then click Delete.
  7. On the Top Navigation bar, click Sites to return to the Site Directory, and then click Publish.

Add or change the Site Directory category of an existing site

  1. On the Top Navigation bar of the portal site home page, click Sites to open the Site Directory.
  2. On the Site Actions menu, click View All Site Content.
  3. On the All Site Content page, in the Lists section, click Sites.
  4. On the Sites page, on the View menu, click All Sites.
  5. Rest the pointer on the site that you want to change, click the arrow that appears, and then click Edit Item.
  6. On the Sites page, select the category in which you want the site to be displayed, and then click OK.

How to add or change category in sharepoint calendar

Add categorys/Meeting Types to SharePoint 2010 Calendar
This is how to change the categories:
1. Go to the calendar web part from the browser.
2. Under the Calendar Tools tab, click the Calendar tab.
3. Choose List Settings.
4. Scroll down to the Columns heading.
5. Click Category.
6. Under the Additional Column Settings heading, there is a text box with the categories, and above the box reads: “Type each choice on a separate line.”
7. Add or remove categories, then click OK

Password Expired in sharepoint

Password Expired for Central admin:
---------------------------------
Run -> inetmgr -> App pools -> Right click on central admin -> Advanced settings -> Identity  on right side Click on that -> click on set -> Enter name and Password then click on set

How to Control the Performance in Servers


How to Control the Performance:
------------------------------

Go to Task Manager -> See the performance -> When ever it reaches 80% we will get alerts
then we have to check in the Process and check for Which service is Occupied more space ie MB we have to check
then
Run -> Services.MSC ->stop that particular service and restart it again  
Then it will control automatically

Steps to install wsp files By using STSADM command in sharepoint 2010

Steps to install wsp files By using STSADM command:
--------------------------------------------------
First we have to run this command in CMD :

cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN

1. Add the solution
stsadm -o addsolution -filename {WSPFILENAME}   Ex :  stsadm -o addsolution -filename


2. Deploy the solution
stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}
                  OR

Go to central admin ->system settings -> Manage Farm solutions ->click on the webpart and deploy  it.


3. Install the feature
stsadm -o installfeature -filename {FeatureFolder}\feature.xml

4. Activate the feature
stsadm -o activatefeature -id {FEATUREID} -url {SITEURL} -force

(Or)

Go to the particular site site actions ->site settings ->site collection admin -> site collection features ->activate the feature

5. Deactive the feature
Stsadm.exe -o deactivatefeature -filename “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\ViewFormPagesLockDown\feature.xml” -ur http://servername/

6.Uninstall the feature
stsadm -o uninstallfeature -filename

7.Retract Solution
stsadm -o retractsolution
-name
[-url]
[-allcontenturls]
[-time]
[-immediate]

8.Delete Solution
stsadm -o deletesolution
-name
reference

C:>stsadm.exe -o deploysolution -name MossSolution.wsp -immediate -allowgacdeployment