Wednesday, 23 February 2011

Changing the max file upload size in SharePoint 2010


In project we were having the requirement to upload the file size of up to 100mb. By default SharePoint allow the 50mb size document upload.

To increase the document sizes to upload follow the following steps:
Go to central admin site.

Click Application Management

Under Web Applications click Manage Web Application
List of the all web application will be displayed.
Select the web application for which you want to change the setting

In ribbon select click the General Setting and select the General Settings
Web application general setting page will be displayed in middle of page change the setting of file to 

Upload and click ok.

Tuesday, 22 February 2011

Throwing spexception In MOS

While developing using sharepoint object model, you can show your custom message to the user if any error occur in the code.

By default sharepoint use his own message for any unknown error.


User the following code to through your custom message


throw new SPException("Ill Legal operation performed. Contact to your administrator.");

Enabling degugging in wss 3.0 / moss 2007

To enable the debugging on wss modify the web.config of the application as follows :


Search for
safemode callstack="false" maxcontrols="200"

change to
safemode callstack="true" maxcontrols="200"


Search for
customerrors mode="On"


change to
customerrors mode="Off"


Search for
compilation debug="false" batch="false"

change to
compilation debug="true" batch="true"

Thursday, 10 February 2011

deleting all the record form a list at onece using OOB feature (Publishing Feature)

If you have configure the publishing feature in moss then its easy to delete all the record from a list at once.

But in case of team time there is no direct way to delete all the record from list .

One tweak is that use the url that moss use in case of publishing site.

Use the following url to delete all the record from a list at once.

http://localhost/_Layouts/sitemanager.aspx

From the left site select the list name and it will show you the list item with a checkbox option with every list item.



Select the list item and from the action menu select the delete.


Selected record will be deleted.


By default it shows the 100 items per page but you can change the item per page from the right hand side on top left.

Friday, 4 February 2011

Default Content Type in moss 2007

Following are the different content type in share point 2007 provided by OOB :

Business Intelligence Content Types—Dashboard Page, Indicator using data in Excel workbook, Indicator using data in SharePoint list, Indicator using in SQL Server Analysis Services, Indicator using manually entered information, Report

Document content types— To create any custom content type that belongs to document type inherit this content type. This content type Same as in Windows SharePoint Services 3.0.

Folder content types— This content type is used to attach with the folder type items. Same as with Windows SharePoint Services 3.0

List content types— This content type are used to store the items in the custom list. Major are custom list, announcement type, and many more . Same as with Windows SharePoint Services 3.0

Page layout content types— This content type is used to create Article Page, Redirect Page, Welcome Page

Publishing content types—Page, Page Layout, Publishing Master Page.

Special content types—Same as Windows SharePoint Services 3.0