Thursday, August 20, 2009

webpart to a XSLT dataview using SharepointDesigner - Error When move dev to Prod environment




I moved MOSS dev site to prod environment, its shows error where ever having XSLT dataview.
Error Messages
In your Web browser:
Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.
In SharePoint Designer:
The server returned a non-specific error when trying to get data from the data source. Check the format and content of your query and try again. If the problem persists, contact the server administrator.
I searched in google and msdn, i didn’t get any solution.
After that i find the fix.
I opened both dev and prod in Sharepoint Designer, Check the GUIDs for DataSource its same in both dev and prod, but the list guid not same.
Fix:
I find the dev list guid in sharepoint designer page and replace the prod guid. Saved and open the page in Browser its working fine.
Note:
When you convert a webpart to a XSLT dataview with Sharepoint Designer it creates a datasource which points to the list used. The reference to the datasource is given using the ‘GUID’ of the list. So, when we do a backup/restore (SPD) or export/import (stsadm), or Site template the new list created will have a GUID different from that of the original list. However, the restore does not update the original links with the new GUID. So, the View is unable to fetch data from the datasource and can’t show the list.









Tuesday, August 18, 2009

We are in MOSS 2007(SharePoint 12) Microsoft Planning to release SharePoint 2010 (formerly codenamed SharePoint 14) and WSS 4.0

MOSS 2007 - 32 bit , SharePoint 14 - 64 bit
System Requirements
SharePoint Server 2010 will be 64-bit only.
SharePoint Server 2010 will require 64-bit Windows Server 2008 or 64-bit Windows Server 2008 R2.
SharePoint Server 2010 will require 64-bit SQL Server 2008 or 64-bit SQL Server 2005.
Internet Explorer 6 and later and Firefox, and Safri
Designer – SharePoint Designer 14 /2020
New Features in SharePoint 14
1. A new user interface
An intuitive and contextual web user interface that makes users more effective, provides better performance
2. Web Edit and Rich Theming
Web Edit allows users to easily customize a site. Rich Theming allows user to skin their SharePoint site using their favorite office client themes.
3. Silverlight Web Part
The Silverlight Web Part lets you quickly and securely integrate Silverlight applications and rich media into your site taking the user experience to another level.
4. Visio Services
Visio Services lets you share data linked diagrams in real time with interactive experience. It is not required to have Visio.
5. Business Connectivity Services
Business Connectivity Services (BCS) allows connecting to Line-of-Business applications, web services and databases enabling users to interact and update it easily in the web and in the office client.
6. SharePoint Workspace
SharePoint Workspace lets you take your SharePoint lists and libraries offline including the ability to update content and sync it back in when you are re-connected.
7. Streamlined Central Administration
Everything is at your fingertips within Central Administration. It makes configuring and managing your server farm quicker and easier.
8. Best Practices Analyzer
Best Practices Analyzer provides extensible rules based engine that monitors farm health, and can automatically fix many common configuration and performance issues right out-of-the box.
9. Usage Reporting and Logging
The database schema gives the power and flexibility of writing our own reports in addition to the ones provided already. Insight into server usage and performance becomes easier.
10. Visual Studio 2010 tools
Includes new tools for creating, packaging and debugging SharePoint solutions.
11. LINQ for SharePoint
Offers SharePoint developers to access and join the SharePoint list data easily.
12. Developer Dashboard
Developer Dashboard can be enabled on any SharePoint page for development and debugging purposes. It helps developers write better code by providing diagnostic information.
13. Client Object Model
Client Object Model is a new programming interface where code runs on a user's client machine against a local object model and interacts with data on the SharePoint server.
14. Large List Resource Throttling
Gives granular control over the server performance impact of large list and libraries that contain several thousand to millions of items.
15. Deploy and debug from Visual Studio
You should be able to build, deploy and debug SharePoint applications directly from Visual Studio! If this is true, it will save us a lot of time!

Monday, July 27, 2009

Delete Sharepoint ListItems using c# - Issue with microsoft sample code

Below is the Code to Delete List Item used by Microsoft Sample

spListCollection = spWeb.Lists["ActualAmounttrack"].Items; int itemCount = spListCollection.Count;
for (int k = 0; k < itemCount; k++)
{
SPListItem item = spListCollection[k];
if (IdeaId == item["Title"].ToString())
{
spListCollection.Delete(k);
}
}

Its not Working.
Why the above code is not working - If you need to loop through the ListItemCollection to delete multiple ListItems, your code will not work. When you attempt to delete the last ListItem, you will receive a boundary exceeded exception.
The index to the ListItemCollection should always = 0.

Solution:
Working code
spListCollection = spWeb.Lists["ActualAmounttrack"].Items;
int itemCount = spListCollection.Count;
for (int k = itemCount; k > 0; k - -)
{
int id = k - 1; SPListItem item = spListCollection[id];
if (IdeaId == item["Title"].ToString())
{ spListCollection.Delete(id); }
}

Sunday, February 8, 2009

MOSS 2007 Web Services - Easier Way to Populate the Sharepoint Information

Using this below Web Services,
Easier way to populate all information to your Webparts or Windows Applications.

This is my first blog here