Tuesday, April 28, 2009

Large-file-chunk-size: Stsadm property (Office SharePoint Server)

http://technet.microsoft.com/en-us/library/cc262061(TechNet.10).aspx

Description

Specifies the amount of data that can be read from the server running Microsoft SQL Server at one time.

NoteNote:

This property is available only from the command line.

Syntax

stsadm -o setproperty

-propertyname large-file-chunk-size

-propertyvalue

[-url ]

The syntax for the getproperty operation is:

stsadm -o getproperty

propertyname large-file-chunk-size

[-url ]

NoteNote:

You can substitute -pn for -propertyname and -pv for -propertyvalue.

Property values

The following table shows possible values.

Name

Value

propertyname

Gets or sets the name of the property.

propertyvalue

The upload size in bytes.

Content consisting of a single file or groups of files cannot be greater than this setting. The default value is 5 megabytes (MB). In certain circumstances, this value can be changed to any value up to 2 GB (2047 MB).

url

Typically, a path to the URL of the Web application, in the form http://server_name.

Remarks

If you have a file that is greater than your chunk size (for example, 70 megabytes (MB) when the chunk size is set to 5 MB), the file would be read in 14 chunks (70/5). The chunk size is not related to the maximum upload file size. The chunk size simply specifies the amount of data that can be read from a file at one time.

NoteNote:

If the chunk size is raised too high, the files might use up too much front-end memory and you may need to lower this setting

After making a change to this property, you must restart IIS. You can restart IIS by typing iisreset at a command-line prompt.

Examples

To set the large file chunk size to 500 MB, use the following syntax:

stsadm -o setproperty -pn large-file-chunk-size -pv 500

To view the current setting of the large file chunk size property, use the following syntax:

stsadm -o getproperty -pn large-file-chunk-size –url http://server_name

Max-file-post-size: Stsadm property (Office SharePoint Server)

http://technet.microsoft.com/en-us/library/cc261801.aspx

Description

Specifies the maximum allowable size for a single upload of content to any site.

This property is equivalent to the Maximum Upload Size user interface setting that is located on the Web Application General Settings page of the SharePoint Central Administration Web site.

Syntax

stsadm -o setproperty

-propertyname max-file-post-size

-propertyvalue

[-url http://server_name]

The syntax for the getproperty operation is:

stsadm -o getproperty

propertyname max-file-post-size

[-url ]

NoteNote:

You can substitute -pn for -propertyname and -pv for -propertyvalue.

Property values

The following table shows possible values.

Name

Value

propertyname

Gets or sets the name of the property.

propertyvalue

The upload size, in megabytes. Content, which can consist of a single file or groups of files, cannot greater than this setting. The default value is 50 megabytes (MB), but this can be changed to any value up to 2 gigabytes (GB) (2047 MB).

For example, if you plan on uploading large movie files with a file size over 50 MB, you would want to increase the value to an appropriate size greater than 50 MB.

url

Typically, a path to the URL of the Web application, in the form http://server_name.

Remarks

If a user tries to upload a file or group of files larger than the value specified by the max-file-post-size property, an error message appears and the user's files are not uploaded.

By default, the max-file-post-size property is set to 50 MB. If you notice performance or scale problems on the client or server, then you may need to adjust this setting to reach your target performance.

Examples

To set the upload size to 200 megabytes, use the following syntax:

stsadm -o setproperty -pn max-file-post-size -pv 200

To view the current setting of the maximum file post size property, use the following syntax:

stsadm -o getproperty -pn max-file-post-size –url http://server_name

Friday, April 17, 2009

Check If A Site Exists in SharePoint

/// Check to see if the site exists
///
/// If the site exists in the farm
private static bool CheckSiteExists(string siteName, string webName)
{
//open site and web
using (SPSite site = new SPSite(siteName))
{
using (SPWeb web = site.OpenWeb(webName))
{
//if the web does not exist return false
if (!web.Exists)
{
return false;
}
else //otherwise
return it does
{
return true;
}
}
}
}

Monday, April 13, 2009

Debug SharePoint

To debug the SharePoint, change the following web.config file

1:
2:
3:
4:

5:
6:
7:
8:

9:

Monday, April 6, 2009

Create User to the Domain and the Sharepoint.

Create User to Domain

Step 1: Open the “Active Directory Users and Computers”, Add the New User to PortalUser/Users Folder.


Step 2: Key in the user information.


Step 3: To check the password policy go to “Admintrator Tool ->Domain Security Policy->Security Setting->Account Policies->Password Policy”. All the password policy show at the lists.



Add or Syn the Active Directory User to the SharePoint.
Step 1: Open the SharePoint Central Administrator, go to SharedServices->User Profiles and Properties.

Step 2: Click the “Start Full Import” to import all the Active Directory user to the SharePoint or Click “Add User Profiles” to manually key in the new user Information.

Restart the Office SharePoint Services Search

Step 1: Go to Central Administration > Operations > Services On Server.



Step 2: Server: Select the server need restart the Office SharePoint Services Search.



Step 3: Stop Office Sharepoint Server Search.



Step 4: Start Office SharePoint Server Search.



Step 5: Select “Use this server for indexing content” and “use this server for serving search queries”.


Step 6: Key in Password after that click ok to proceed.

Step 7: Go to Central Administration > Shared Services Administration.

Step 8: Click the SSP and select edit properties from its drop down list.


Step 9: Enter the SSP process account password .

Step 10: Assign the index server and click Ok button.


Step 11: Go to Application Management > Manage search service, Make sure the “Shared Service Providers with Search Enabled” is up.


Completed Restart..........