Follow in Twitter & Facebook


Like in Facebook

Powered By Blogger Widgets

Free Download

FREE Tools


Monday, November 28, 2011

SharePoint 2010 Features.

- No comments
Introduction:
In this article we will discuss 6 pillar of SharePoint 2010.

Description:
The 6 pillars also known as the features of SharePoint 2010 for developing business collaboration solutions are: Sites, Communities, Content, Search, Insights and Composites.

Sites:
- This feature includes creating websites, editing websites and applying themes etc. You can see this article on how to create custom theme for SharePoint 2010?

- SharePoint 2010 also provides Ribbons, dialog boxes, visual web parts, silverlight support etc.

- Unlike MOSS 2007 SharePoint 2010 supports cross-browser support, Now it supports Google chrome, Mozilla Firefox  and Safari apart from Internet Explorer.
Communities:
- This feature includes feature like content tagging and rating, social networking, message transfering etc.

Content:
- This feature includes Document sets through which we can group related documents. You can visit this article for more on Document set.

- Previously we could not store audio and video files but now by the help of this feature we  can able to store audio, video and streams.

Search:
- SharePoint 2010 provides fast search engine feature which provides multilanguage content and phonetic support.

Insights:
- This provides integration and support for Excel services, Visio services, Access services, Microsoft SQL Server Reporting Services etc.

Composites:
- This feature includes Business Connectivity Services , this is responsible for consuming the external resources. This provides tools like Visual studio 2010SharePoint Designer 2010.

Monday, November 21, 2011

How to get the 4 part assembly name of a custom web part in SharePoint 2010?

- No comments
As I have discussed previously the way to get the 4 part assembly name by using this URL, which sometimes gives the wrong result.
So here I am describing the way you can get the 4 part assembly name of your custom web part.
First of all add the web part to the SharePoint 2010 site by edit the page and click on the add a web part link on your web part zone. Once you will add the web part, go to Edit web part as shown in the figure below.

Then from the web part properties go to Advance and then in the Export mode Select Export all data as shown in the figure below.


Then click on OK.
After that click on Export... as shown in the figure below.
Then it will ask you to save the web part. Just save the webpart and after that open that file in notepad. It will give you everything about the webpart.

Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object

- No comments
I got this error "Error occurred in deployment step 'Activate Features': Operation is not valid due to the current state of the object " while attaching a event reciver using Visual Studio 2010 in SharePoint. Just for some more information I am attaching the event receiver to a SharePoint 2010 publishing web site. And the event was WebProvisioned.
When I checked the web.config file I have added the Assembly as MyPageLayoutEventReceiver. Though this is same as the assembly name, but was throughing error.
When I change the Assembly name to $SharePoint.Project.AssemblyFullName$, that worked. So my elements.xm file will be as like below:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Receivers >
      <Receiver>
        <Name>EventReceiver1WebAdding</Name>
        <Type>WebAdding</Type>
        <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
        <Class>MyEventReceiverLayout.EventReceiver1.EventReceiver1</Class>
        <SequenceNumber>10000</SequenceNumber>
      </Receiver>
      <Receiver>
        <Name>EventReceiver1WebProvisioned</Name>
        <Type>WebProvisioned</Type>
        <Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
        <Class>MyEventReceiverLayout.EventReceiver1.EventReceiver1</Class>
        <SequenceNumber>10000</SequenceNumber>
      </Receiver>
  </Receivers>
</Elements>

Thursday, November 17, 2011

Error occurred in deployment step 'Activate Features': Failed to instantiate file filename from module modulename: The specified list does not exist

- No comments
While deploying a custom page layout through Visual Studio 2010 to a SharePoint 2010 publishing web site, I got the error "Error occurred in deployment step 'Activate Features': Failed to instantiate file "MyCustomPageLayout.aspx" from module "ourlayout": The specified list does not exist." My Elements.xml file code is shown below.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="ourlayout"  Url="_catalogs/ourlayout">
    <File Path="ourlayout\MyCustomPageLayout.aspx" Url="MyCustomPageLayout.aspx" Type="GhostableInLibrary" >
      <Property Name="Title" Value="My Custom Page Layout" />
      <Property Name="ContentType" Value=";$Resources:cmscore,contenttype_pagelayout_name;" />
    </File>
</Module>
</Elements>

So the proble was the path in the Url which was defined as Url="_catalogs/ourlayout". So I have modified the code below and it works for me.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="ourlayout"  Url="_catalogs/masterpage/ourlayout">
    <File Path="ourlayout\MyCustomPageLayout.aspx" Url="MyCustomPageLayout.aspx" Type="GhostableInLibrary" >
      <Property Name="Title" Value="My Custom Page Layout" />
      <Property Name="ContentType" Value=";$Resources:cmscore,contenttype_pagelayout_name;" />
    </File>
</Module>
</Elements>

This item cannot be deleted because it is still referenced by other pages while deleting page layout in SharePoint 2010

- No comments
I go this error while trying to delete a page layout from the master page and page layout galery. It was saying "This item cannot be deleted because it is still referenced by other pages ". Previously I have created a web site and also changed the layout, to this layout that I was trying to delete. Also I was not able to delete the Site, because this layout was throwing some error. So I go to Site actions then Manage Content and Structure as shown in the figure below.


 Then from there I select delete and delete the site as shown in the figure below.

After this when I tried to delete the layout, it worked for me. So you have to delete all the sites and then you have to delete the page layout. Also you can check SharePoint 2010 articles here.

Thursday, November 10, 2011

User Information List in SharePoint 2010

- No comments
User Information List is a hidden list maintained by SharePoint 2010 to stores and maintains a user information profile for authenticated users at the site collection level. A user also can update the profile information from the My Settings link. So for a particular user there will be only one user profile information accross all the sites in the site collection. You can see the list from the below URL
http://[sitecollection]/_catalogs/users/simple.aspx.

You can access the list by using SharePoint object model by using the SPList class.
But if you are using SharePoint Server and you have configured User Profile Service application to import profiles, in that case the information are copied from User Profile to User Information List by two timer jobs "User Profile to SharePoint Full Synchronization" and "User Profile to SharePoint Quick Synchronization". Here your profile information can be updated from the Active Directory or from My site feature.

What about Wiki Pages and Web Part Pages in SharePoint Foundation 2010 ?

- No comments
When you are going to create a Team site in SharePoint Foundation, SharePoint creates a wiki page library (known as site pages) where the web pages are going to store. There are two types of web pages one is Wiki pages and another one is Web part pages. Wiki pages are default while creating a team site,blank site template etc.

Wiki pages can contain web parts. Web parts are reusable components can contain any type of web based information like analytical, database information. Here in case of wiki pages, webpart contain static text and images. Web Part Pages can contain web part. here to place static text or images you have to use content editor web part and image web part.