We have lot of websites in internet and many of them are in SharePoint. So if you see any good looking site on internet and you want to check whether it is sharepoint based site or not?
There are some really cool exceptional ways.
Take "View Source" from any browser of your site. You will see something like <head> <meta name = "Generator" content="Microsoft SharePoint"/>
Dont forget to check Javascript section just after <Title>
You will see reference JS from src="/_layouts/1033/init.js"
If its SharePoint site there are also webservice with it. You can call any of webservice (If banned you will see "Unknown Error" page). e.g http://SharePointSite.Microsoft.com/_layouts/Lists.asmx .
Otherway is check images folder available in 12 hive folder(e.g. http://SharepointSite.Microsoft.com/_layouts/images/accesssetting.gif), it will show you image available in 12 hive folder.
Thursday, December 16, 2010
Monday, December 13, 2010
Session State Error in SharePoint 2010
ASP.NET session state may be used on SharePoint 2010 pages. This service is automatically disabled in normal installations of SharePoint 2010. To enable session State in SP 2010 follow beleow steps:-
- Enter the following PowerShell command in the SharePoint 2010 Management Shell window:
Enable-SPSessionStateService –DefaultProvision.
Steps for PowerShell:-
Go to all programs-->Microsoft SharePoint 2010 products-->SharePoint 2010 Managment Shell.
- On each web application for which you want to use session state, edit the web.config file and set the enableSessionState property of the pages element as follows:
<pages enableSessionState="true".
Friday, December 10, 2010
Session Error occur on SharePoint Site
Some times Session error occur on your sharepoint portal server when installing asp.net project/User Control on SharePoint Server. The user control handling some session value on that page.
To overcome the error used following steps:-
To overcome the error used following steps:-
1. Go to Central Admin à Application Management à Configure Session State à enabled session state.
2. From a command prompt, navigate to the Microsoft.NET 2.0 Framework directory(C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG).
3. Open web.config file and modified as follows:-
4. Uncomment the line:- <add name=”Session” type=”System.Web.SessionState.SessionStateModule” />
5. Modified the line:- <pages /> to <pages enableSessionState=”true” … />
6. From a command prompt:- change c:\Documents and setting… to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
7. Run the command:- aspnet_regsql.exe -S <server_name> -d <database_name> -ssadd -sstype c -E
8. Where server name = is the database server where your database is located (Mentioned in error page).
9. Where database name = is the content database of your shared services provider(Mentioned in error page.
10. Make IISReset.
Tuesday, October 26, 2010
Calculated columns cannot contain volatile functions like Today and Me
When you trying to add calculated formula in list based on current date. You add '[Today]' in your formula and you give error like:- "Calculated columns cannot contain volatile functions like Today and Me". See image below:-
To solve this error use following steps:-

To solve this error use following steps:-
- Open up the List Settings page where you want this column.
- Create column named “Today”. The type doesn’t matter here, so let type as “Single Line of Text” and just click “Ok”

3. Now create the calculated column where you need to use current date within formula and add “Today” from available columns.
4.Once this is done, we no longer need that our own generated column “Today” so you can delete it (Although when you need to edit formula you will need this again, so either recreate this dummy Today field or make it hidden using code behind. Otherwise SharePoint will put you again on that error screen).
5.For calculated fields, calculated value is stored in Database when item is created at first time and doesn’t change until item is edited. So using Today doesn’t means each time you will get value re-calculated as per actual today’s date. For that it is better to use Computed column.
Thursday, October 21, 2010
"Errors were found when compiling the workflow.The workflow files were saved but cannot be run."
When you create workflow using sharepoint designer tool and you get the following error:-
"Errors were found when compiling the workflow.The workflow files were saved but cannot be run." and if you click on details button you get message "Unexpected error on server associating the workflow".
The problem with your web.config file. If you install some third party workflow tool(e.g Nintext,Sogeti,EdinKapic) and unistall it, referrence dll not removed from your web.config file.
To remove error use following steps:-
- Open your web.config file in Visual studio.
- Go to "<System.Workflow.ComponentModel.WorkflowCompiler>"
- The third party workflow tool reference available here. e.g. Sogeti.Workflow tool
- <authorizedType Assembly="Sogeti.Workflow.Activities,Version=1.0.0.0, Culture=neutral, PublicKeyToken=1cdaea2144644b9c" Namespace="Sogeti.Workflow" TypeName="*" Authorized="True" />
- Comment the third party tool reference, you uninstall previously.
- Save web.config file and reset server.
- Now your workflow run normally.
Saturday, October 16, 2010
Difference between SPWeb.Users, SPWeb.AllUsers, SPWeb.SiteUsers
SiteUsers, AllUsers and Users are properties of SPWeb Object. But looking to this properties name, its not easy to understand their’s scope. So below is description about this properties:-
- SPWeb.Users :- This represents the collection of users or user objects who have been explicitly assigned permissions in the Web site . This does not return users who have access through a group.
- SPWeb.AllUsers :-This gives us the collection of user objects who are either members of the site collection or who have atleast navigated to the site as authenticated members of a domain group in the site.
- SPWeb.SiteUsers :- This is the collection of all users that belong to the site collection.
Tuesday, September 28, 2010
Remove user acess from sharepoint site.
If some user is no longer with company and you want that user not get permission to access SharePoint site and mail go to that particular user.
If you remove the particular user from AD or disable the account in AD, the mail account also disable and the user not get mail.
For remove the particular user use following steps:-
1) Go to Central Administration àApplication Management àPolicy for Web Application
2) Click on Add Users. Select Web Application for which you want to disable access.
3) Select Zones as (All Zones) and click on next button.
4) Add user in Choose user section and select “Deny All – Has no access ”.
5) Click on Finish.
6) The particular user not gets access to the particular site collection.
If you remove the particular user from AD or disable the account in AD, the mail account also disable and the user not get mail.
For remove the particular user use following steps:-
1) Go to Central Administration àApplication Management àPolicy for Web Application
2) Click on Add Users. Select Web Application for which you want to disable access.
3) Select Zones as (All Zones) and click on next button.
4) Add user in Choose user section and select “Deny All – Has no access ”.
5) Click on Finish.
6) The particular user not gets access to the particular site collection.
Subscribe to:
Posts (Atom)