Welcome to MSDN Blogs Sign in | Join | Help

June 2008 - Posts

What happened to my My Links Web Part?

Well, did you add a link like "file://C:/folder1/folder2"? In one customer's environment this was the exact issue. A user added some file system link like the above and ended up with the following symptoms: 1. The user couldn't add the "My Links" web

What permissions are behind the permission levels (roles) in SharePoint

Recently, I was involved in a support request where I had to find out what SPBasePermissions are assigned behind permission level in SharePoint using SharePoint OM code. First some basics about permission level and base permissions. If you are in your

Indexing MSCMS 2001 using MOSS 2007 indexer?

This might be a cake-walk for most of you, but I got delayed a bit to get MSCMS 2001 contents indexed using MOSS 2007. Basically what I saw after I setup a content source and started a full crawl was the below warning: The specified address was excluded

Project to customize the small search control in SharePoint 2007

The small search control that is rendered in the default SharePoint pages is a delegate control rendered through master page. You can find it defined in the master page as follows: < asp : ContentPlaceHolder id ="PlaceHolderSearchArea" runat ="server">

Create and Publish web pages in Publishing SharePoint sites programmatically

Microsoft.SharePoint.Publishing is the assembly that we need to use to get pages created and published. A sample is provided below: using ( SPSite site = new SPSite ( "http://moss" )) { using ( SPWeb web = site.OpenWeb()) { PublishingSite pSite = new

"The site is not assigned to an indexer" error in SharePoint custom search

Strangely enough! We'll not see this issue with an OOTB search. It is seen only when we use search APIs or web service and perform a custom search. Apparently, when we use Microsoft.Office.Server.Search, the content database also gets indexed and this

"The security validation for this page is invalid" error when updating objects through SharePoint object model

This error is often encountered when SharePoint OM is used to update site/web/list objects from within a web context. Some thing so basic as the code below could fail: using ( SPSite site = new SPSite ( "http://moss" )) { using ( SPWeb web = site.OpenWeb())

Database Schema compatibility error in FBA

This is an interesting issue I came across recently and it was nice to know things that I thought would be hardly a matter to be considered. Well, the gist of the issue is very simple. When using default providers (AspNetSqlMembershipProvider & AspNetSqlRoleProvider)

Programming navigation in WSS 3.0

Modifying navigation elements through code is quite tricky in WSS 3.0. Here are few scenarios, I’ve tried to cover that I think will be helpful in playing around with WSS 3.0 navigation elements. I’ve used the top navigation bar in these examples. But

Add/Update "sealed" properties in SharePoint lists

There’s always a question about updating properties in a list in SharePoint. Specifically, properties like “Modified By”, “Modified” etc., WSS 3.0 provides greater flexibility for enabling developers to do this with ease. Usually, this scenario would

GetWebTemplate web method does not return & AddList web method does not recognize my custom list templates!

When you use the “GetWebTemplate” web method provided through webs.asmx web service, you’ll notice that the custom list templates you might have created is not available in the collection returned. This is because the OM call that happens behind-the-wires,
Posted by sridhara | 2 Comments
Attachment(s): CustomLists.zip

"Out of Memory" exception - when adding item to a list using SharePoint OM

Here’s the scenario: A tool that’s designed to add log messages from an application to a SharePoint list. The log messages are themselves “strings”, which when put in a text file may vary anywhere between 1kb to 10mb in size. At a single time, this logging

Starting note on Content Editor Web Part

Recently, I worked a tricky and interesting case where a customer wanted to “silently” put a file in user’s computer. My buddy, Sowmyan bet me by blogging about it here . A job superbly done!! Watch out for enabling Initialize and script ActiveX controls

Released: VS 2008 extensions for WSS 3.0, Version 1.2

Most aviated and now available!! Visual Studio 2008 Extensions for Windows SharePoint Services 3.0 is now available for download. From a top-level glance, there’s no New to Version stuff added and it provides all that the previous version 1.1 provided,

Visual Studio 2008 or Visual Studio 2005 - what should I use for WSS 3.0/MOSS 2007 development?

.NET 3.0 and higher is already supported with MOSS 2007. Essentially, .NET 3.0 and .NET 3.5 are additional components to .NET 2.0 framework. They provide features like Windows Communication Foundation , Workflows and LINQ (if you are a beginner, also
Posted by sridhara | 0 Comments
Filed under:

Case about sorting the quick launch navigation

Many things are easy to do in SharePoint. Considerable stuffs are tricky. And a few – difficult/impossible. One such tricky stuff is customizing navigation (both quick launch and top navigation). Recently, I had an internal request regarding customizing
Posted by sridhara | 1 Comments
Filed under:
 
Page view tracker