Skip to main content

Posts

SharePoint 2010 Web part, which one is used where and when

SharePoint 2010 picking the web part depending upon the data coming from  data source. Comparing view and form web parts XSLTListViewWebPart  : SP list, libraries, external content types XSLTListFormViewWebPart : from external list ListViewWebPart : ListFormWebPart : From a SharePoint  list DataViewWebPart  : n/a - only for backwards compatibility. DataFormWebPart : Xml, SOAP, REST, Database data source  InfopathFormWebPart If you migration your database from 2007 to 2010 then  DataViewWebPart gives backwards compatibility. When you added View in your web part:  If data coming from the list like “SP list, libraries, and external content types” then it will display the data in   XSLTListViewWebPart .  If data coming from the list like “Xml, SOAP, REST, Database data source” then it will display the data in   DataFormWebPart . When you added View in your web part :  If you added the form in your web part and yo...

How to extract WSP from SharePoint 2010 Central Admin

Problem  My Client requirement makes the exact replica of the SharePoint server to another location. There is some custom WSP installed on the server. So SharePoint 2010 Central admin will not allow us to download the WSP from there. Customer wanted to download the WSP Solutions. stsadm, there’s not a command to download a solution. Purposed solution: Using Console application to Extract WSP Using Power Shell Script Implementation: Using Console Application to Extract WSP SPSolutionCollection solutions = SPFarm.Local.Solutions; foreach (SPSolution solution in solutions) {     SPPersistedFile wspFile = solution.SolutionFile;     wspFile.SaveAs("c:\\wsp\\" + solution.Name); }   Using Power Shell $farm = Get-SPFarm $file = $farm.Solutions.Item("custom.wsp").SolutionFile $file.SaveAs("c:\temp\ custom.wsp")

Problem Solve Report deployment error in SharePoint Integration mode

Today post related to SSRS Access Denied Problem. I have a two system attached in a farm. SharePoint Site SharePoint SSRS (Reporting) In SharePoint Site SSO already implemented. I need to move my SharePoint Content database as well as report database server database to new Server. I have a updated SSRS Project source code so I need not to backup the report database. So took the back up of SharePoint content database and move it to another system. I installed new SharePoint Server in one machine and SharePoint SSRS other machine and add both server to farm. I attached the backup database with new application guess :) what.. it was working fine. But the problem comes :( when I was going to deploy reports. It was giving me an access denied. When I open my old reports going to SharePoint Site and open report library still It was giving me an error because the reports only available in SharePoint content database not in Report server database. Also my old database had not acce...

CRUD Operation with SharePoint REST Service using ADO.NET DATA Services

Today I am going to implement the SharePoint 2010 REST Services using ADO.NET Data Services. In this example i will show you how to applying the CRUD Operation to the SharePoint List. In this example I will create the Window Application and consuming the ListData.svc service and perform the basic list Operations. I will provide you a video link so you can easily understand and do it your self.  Overview  Prerequisite General error while using SharePoint Rest Services. Fix Errors Implementation CRUD Operation with SharePoint REST Service using ADO.NET DATA Services Video Source Code Prerequisite Visual Studio 2010  ADO.NET Data Services v1.5 CTP2 Installed on your machine Full Access to the SharePoint 2010 Rest Service URL. Ex http://<<servername:port>>/_vti_bin/Listdata.svc  General error while using SharePoint Rest Services. “System.Data.Services.Providers.IDataServiceUpdateProvider’ from assembly ‘System.Data.Services, ...

Custom Claim base Authentication with Example & Source Code

Claim-based Identity This new type of authentication and authorization in way in SharePoint 2010. A trusted authority (Issuer) issues a signed security token containing a set claims (credentials) which is given to the application for validation. The application will authenticate the user if the security token is valid and signed by a trusted issuer. Applications using this type of authentication do not have to verify all the credentials. Example Claim Based Authentication Someone who determines your company's security policy can make those rules and buy or build the issuer. Your application simply receives the equivalent of a boarding pass. No matter what authentication protocol was used, Kerberos, SSL, forms authentication, or something more exotic, the application gets a signed set of claims that has information it needs about the user. This information is in a simple format that the application can use right away. Geneva framework Microsoft has created a framewor...

SharePoint2010 Excel Services to read data from excel sheet

To read the data from the excel services. I have implemented the code that will get the information from the excel file stored in SharePoint Library. Read the data from excel service. This is simple Window application. To read the Excel file from SharePoint Site you need to have a full persimmon to access the web services.   Excel Web services You can view the Excel Web Services Web Services Description Language (WSDL) page by navigating to the following URL on the server: http://<server>/<customsite>/_vti_bin/excelservice.asmx?WSDL If you do not have a custom site, you can view the WSDL by using the following URL: http://<server>/_vti_bin/excelservice.asmx?WSDL   private void btnLoad_Click( object sender, EventArgs e)         {             ExcelService proxy = new ExcelService ();         ...

STS CryptographicException Error : Key set does not exist

Common mistakes Both SharePoint Site and SSO Site NOT running on the same application pool. Application pool identity user doesn’t have permission to access the certification.  Solution to this problem Set the same identity pool to  : 2. Be sure to grant rights to the certificate for the App Pool running the web service Start -> Run -> MMC File -> Add/Remove Snapin Add the Certificates Snap In Select Computer Account, then hit next Select Local Computer (the default), then click Finish On the left panel from Console Root, navigate to Certificates (Local Computer) -> Personal -> Certificates You're certificate will most likely be here. Right click on your certificate -> All Tasks -> Manage Private Keys Set you're private key settings here. Add app pool account Reset iis