Managed Paths Can’t be used in List/Library/SubSite Names

We can not use Managed paths in SharePoint List or Library. E.g. “Sites” is a built-in Managed path. So you can’t name any list/library/sub-sites as “Sites”. This behavior is in SharePoint 2010 only and Not in MOSS 2007.  But you can use the managed paths in your Site collections. E.g. https://sharepoint.company.com/sites/sites

Read more

Pick the right w3wp.exe to attach among Multiple Worker processes while debugging

When multiple web applications running with multiple application pools, they will create multiple worker processes (W3WP.exe). While debugging code from Visual Studio, we got to pick the one that belongs to the target web application, otherwise, the debugger will not stop on break-points! Don’t forget to select “Show processes from all users”,…

Read more

Create Folders and Sub-Folders in SharePoint Programmatically

How to create Folders in SharePoint? To create a folder in SharePoint list or Library, follow these steps: Navigate to your SharePoint list or library From the “Files” tab on the Ribbon, click on the “New Folder” button Give a name to your new folder and click “Save” What if you don’t…

Read more

Get SPWeb Object from the URL

PowerShell Snap-in for SharePoint 2010 offers Get-SPWeb cmdlet to get SPWeb Object directly from the given web URL. But when writing .Net code in C# (or in PowerShell with MOSS 2007) SharePoint object model doesn’t offer this mechanism. However there is a Trick to get SPWeb Object from given URL: Get the…

Read more

Server error in ‘/’ Application – The Resource cannot be found – Solution

In a SharePoint 2007 environment, called for fixing a issue: All SharePoint sites appeared with an error”SharePoint server error in ‘/’ Application The Resource cannot be found. “ Server Error in ‘/’ Application.The resource cannot be found.Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have…

Read more

Inline Editing in SharePoint 2010 – How to Enable? Not working? Set the Style to Default

Inline Editing feature in SharePoint 2010 provides us an option for editing items in the same page – Same Line, with out going to a separate edit form. How to enable inline editing in SharePoint 2010? It’s configured in view’s settings. To activate inline editing in SharePoint 2010, Just modify the view…

Read more

SharePoint Designer “Error Reading File” – Bulk Blank Lines Fix

Getting “Error Reading File” when trying to open a page in SharePoint Designer? Well, it’s a bug! SharePoint designer inserts Blank lines in the aspx file when you edit!! Fix: Open the page as text in SPD (or any other Text editor), Remove Blank Lines (Careful! Don’t delete the code. Delete only…

Read more